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.
I don't think the cookie mode ever worked right, as it used an uninitialized variable for the $expire.
Here's a version that seems to work fine.
I've changed it to either set a cookie with expiration near the end of time() or to remove the cookie. The correct button shows in each case.
In the process I cleaned up some out-of-date comments.
Comment | File | Size | Author |
---|---|---|---|
#2 | kiosk.cookie_improvements_783554_02.patch | 5.69 KB | rfay |
#1 | kiosk.cookie_improvements_783554_01.patch | 4.06 KB | rfay |
Comments
Comment #1
rfayHere's the patch. I don't know why they seem to get dropped so often lately.
Comment #2
rfayHere's an improvement: Cookie deletion wasn't working quite right.