Alright, heres the thing.. I have a login function working fine with cookies.. But when I logout it doesn't actually log you out.. The cookies are still there..
Could someone tell me how to make a logout functions?
PHP Code://This function logs you out
function logOut()
{
session_unregister('usercook');
session_unregister('passcook');
session_unregister('username');
session_unregister('password');
unset($usercook, $passcook, $username, $password);
session_destroy();
echo "<B>$fontString You are now being logged out</b><bR><bR>";
//echo "<a href=main.php>Click here to return to the login menu</a>";
echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3; URL=main.php\">";
}
That is my logout function.. I have tried everything to remove the cookies an the values an whatnot.. Please someone help..





Reply With Quote