Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In my sites, advuser is not enabled for any user roles; I use it only as admin.
I was very surprised, therefore, to find a session cookie set for anonymous users.
It looked like this:
[advuser] => Array
(
[accounts] => Array
(
)
[deselected] => Array
(
)
[filters] => Array
(
)
[phase] => Array
(
[id] => 0
)
[return] =>
[selectall] =>
)
I have now disabled the module and the cookie is gone but I am interested in using it again once this is resolved.
Comment | File | Size | Author |
---|---|---|---|
#2 | advuser_sessions-1261912-2.patch | 1.28 KB | pbull |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks for the report. I'll see if I can get to it soon but probably not before the end of the year.
Comment #2
pbull CreditAttribution: pbull commentedSetting sessions for anonymous users breaks Varnish, which can have a major performance impact on sites that make use of Varnish for caching anonymous requests.
Patch to advuser_init() attached. Patch against 7.x-3.x-dev; this patch applies to 6.x-3.x-dev as well.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI like this patch.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedI've committed this patch to the 6.x-3.x-dev version at http://drupalcode.org/project/advuser.git/commit/9a9c8b1 and will do the same for 7.x-3.x-dev soon.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedhttp://drupalcode.org/project/advuser.git/commit/7d1fb54