Page 1 of 1
Cookie Problem
Posted: Sun Jun 19, 2005 6:36 pm
by Dale
Ok then...
Code: Select all
setcookie("e;dalehaygame"e;, "e;Blue Bell"e;, $time+3600);
Makes the cookie...
Shows the cookie value (eg;
Blue Bell)
Code: Select all
setcookie("dalehaygame", "", $time-3600);
Breaks the cookie. However if i then go back to the page with the cookie being shown, I still get told it's
Blue Bell. Why?
Posted: Sun Jun 19, 2005 7:15 pm
by nigma
Why in gods name have you tried to escape the second argument !?!
... but seriously ... why?
Posted: Sun Jun 19, 2005 8:25 pm
by Skara
maybe a forum bug? It's done it to me before.
Posted: Mon Jun 20, 2005 7:49 am
by Syranide
The answer to this is likely _CACHE_ either way, when you step back, Mr. Cache wakes up with his supermutant memory which remembers that pages, and instead of updating it again he let's you read his mind.
Posted: Mon Jun 20, 2005 5:07 pm
by Dale
Huh?
Posted: Tue Jun 21, 2005 4:16 pm
by Dale
You've all lost me... please can i have some help with this cookie problem... it's doing my head in.
Posted: Tue Jun 21, 2005 4:27 pm
by nigma
The only thing I can think of, assuming you've addressed the point that syranide mentioned, is that you aren't trying to delete the cookie with the same arguments that you set it with. Now, I know that in the snippets you provided argument count was the same, but maybe in your code it's not ?
If not, maybe some of the comments on
http://php.net/setcookie will have an answer.