Hello!

I have an issue with %session[key] variables on my webform. I have a hidden field wich is sending a session variable. Is is working perfectly for logged in users but is sending an empy field for anonymous users.

Is there a workaround to be able to send the session variable from an anonymous user?

I am showing the webform as a block on all of my nodes. (example: http://www.101pisos.es/es/node/534745) and what I need is the URL from where the webform is sent, maybe there is a different workaround...

Thanks a lot!!!

Andres

Comments

quicksketch’s picture

Tokens like %session, %cookie, and %post do not work for anonymous users if page caching is enabled (since users would end up with each others variables). If you're looking to store the URL that the webform was submitted from, I suggest using %get[q] in a hidden field. Though this will get you the Drupal URL, not the cleaned-up one. You can run it through url() again on display to make it into a full URL.

quicksketch’s picture

Status: Active » Closed (fixed)