View Single Post
Old 03-03-2008, 10:33 PM   #5 (permalink)
StevenF
The Contributor
 
Join Date: Jan 2008
Posts: 87
Thanks: 49
StevenF is on a distinguished road
Default

Quote:
Originally Posted by ReSpawN View Post
That should work fine. Since you're not setting any content on the cookie and the timer in negative, it's automatically a false cookie. Plus, almost every browser including Netscape and Internet Explorer delete out-of-date cookies. Otherwise, it's not a problem since you can make your system check for cookies and them validate the timestamp given.

To sum it up once again, that should work fine. And oh yeah, to the quote. Think of setting (and unsetten) of cookies as headers. It's basically the same rule, before ANY output. I haven't found a good method to unset it in-script, but I do it with a post variable.
But that's my problem; the above code exists half way through my script. I was thinking it would be possible to set the cookie in PHP as shown, then delete it using JavaScript?
__________________
My Personal and Photo Blog
StevenF is offline  
Reply With Quote