View Single Post
Old 01-05-2012, 10:11 PM   #2 (permalink)
wGEric
The Acquainted
 
wGEric's Avatar
 
Join Date: Nov 2007
Posts: 166
Thanks: 0
wGEric is on a distinguished road
Default

This script works for me

PHP Code:
setcookie('TESTCOOKIE'''time()-3600);
setcookie('TESTCOOKIE''value' rand(1,20), time()+3600); 
So I would assume yours would work as well. I tested that using Firefox 9.

When you set a cookie it sends the following in the headers

Code:
Set-Cookie: TESTCOOKIE=deleted; expires=Wed, 05-Jan-2011 22:09:38 GMT
TESTCOOKIE=value11; expires=Thu, 05-Jan-2012 23:09:39 GMT
So I wonder if the browser is getting confused with setting the same cookie twice. I don't know though. This is all speculation.
__________________
Eric
wGEric is offline  
Reply With Quote