Needs review
Project:
Boost
Version:
6.x-1.18
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2011 at 19:46 UTC
Updated:
18 Feb 2011 at 21:56 UTC
Setting the cookie to -1 will make firefox keep the cookie rather than delete it
Line : 870 :
case 'logout':
boost_set_cookie(-1);should be
Line : 870 :
case 'logout':
boost_set_cookie(0,time() - 3600);
Comments
Comment #1
mikeytown2 commentedcookie gets removed in the next request. see boost_init
Comment #2
marios88 commentedI have cacherouter enabled too
in my case the cookie gets stuck to -1 and i get fresh served pages for every user that has logged out.
I saw boost_init, but why wait for the next request when you can remove it now?
just my 2 cents
Comment #3
mikeytown2 commentedthread where this came from
#305071: user logout, Header unset ETag & browser caching front page
I should set this to 30 seconds: boost_set_cookie(-1);
Comment #4
marios88 commentedIt indeed works as you pointed out
I figured out the problem was i set cookies to end "At End Of Session" in my config.php
Changing this to stock values fixed the matter.
Comment #5
mikeytown2 commentedmind documenting exactly what you had to change so the next person who has this issue can find this thread and fix it on their box?
Comment #6
marios88 commentedIn settings.php cookies have to have a greater than zero lifetime.( Not "at end of session")
this will work fine with boost
According to my tests this will not work and will make the UID cookie get stuck to -1
Comment #7
mikeytown2 commented