vicpal25
08-10-2005, 06:02 PM
helllo you guys, i am working on a log in and log out script. I have for my login a cookie set:
setcookie("loggedin", "TRUE", time()+(3600 * 24));
setcookie("mysite_username", "$username");
i am now working with the logout script..how should i set the logout script so it will kill the cookie set. I have tried:
setcookie("loggedin", "TRUE", 0);
setcookie("mysite_username", 0);
on top of everysecure page i have set
if (!isset($_COOKIE['loggedin'])) die("You are not logged in!");
any suggestions?
setcookie("loggedin", "TRUE", time()+(3600 * 24));
setcookie("mysite_username", "$username");
i am now working with the logout script..how should i set the logout script so it will kill the cookie set. I have tried:
setcookie("loggedin", "TRUE", 0);
setcookie("mysite_username", 0);
on top of everysecure page i have set
if (!isset($_COOKIE['loggedin'])) die("You are not logged in!");
any suggestions?