...

View Full Version : weird cookie problem



celestine
09-27-2004, 10:21 AM
I'm trying to use a simple cookie for a login and logout script.

I can login fine, but I cannot logout at all. I tried removing the cookie the usual way but its not doing it. The cookie is still stored in my browser.


// login.php
setcookie('verifieduser',$username,time()+9600,'/');
header('location: index.php');
exit;



//logout.php
setcookie('verifieduser','',time()-9600,'/');
header('location: index.php');
exit;


May I missing something obvious? Thanks for your time.

raf
09-27-2004, 02:02 PM
how do you know it is still there?

did you close all browserwindows and then checked the cookiedirectory? Did you remove all cookies that were already set from that domain before you tried setting and deleting a new cookie?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum