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.
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.