Question about The PHP Group PHP
Are you saying you're switching from a session variable to a cookie?
delete the cookie altogether by setting the expiration to a time in the past (negative value). don't forget that you'll then have to reload a page in order to reread the cookie data.
so if you have a cookie with a logged_in value = true, and you set it to logged_in value = false, you're still logged_in = true, until you reload that page (or another page) and it rereads the cookie data and now determines that logged_in = false.
make sense? write the logged_in=false to the cookie, then force a url redirection to reload the page is my suggestion.
Posted on Apr 04, 2009
Tips for a great answer:
Aug 02, 2010 | Compilers & Programming Tools
May 31, 2010 | Adobe Compilers & Programming Tools
May 20, 2010 | Compilers & Programming Tools
Dec 30, 2008 | The PHP Group PHP
Nov 24, 2008 | Compilers & Programming Tools
Aug 28, 2008 | The PHP Group PHP
Mar 20, 2008 | Compilers & Programming Tools
Oct 06, 2016 | The PHP Group PHP
142 people viewed this question
Usually answered in minutes!
Step 2: Please assign your manual to a product: