Clearing Stored Cookies
Posted: Mon Feb 23, 2004 7:54 am
Hi,
I am having problem clearing the stored cookie when the user log outs. I designed a quiz module which uses cookie. In my sign out page I have this code:-
<?
setcookie ("reg_id", "");
header ("Location:/jen/index.php");
?>
This script works well in explorer but in other browsers, it tens to still keep the user detail so when a user gets in the quiz modules on Guest mode, it is not recongnizing the user as a guest instead using the previous registered user's details. This only gets overwritten if the new user login with his/her uname and psw. But the problem is, we also have a guest mode where a user does not need to necessarily register to take the quizez.
Any idea will be highly appreciated.
Thanks a million
I am having problem clearing the stored cookie when the user log outs. I designed a quiz module which uses cookie. In my sign out page I have this code:-
<?
setcookie ("reg_id", "");
header ("Location:/jen/index.php");
?>
This script works well in explorer but in other browsers, it tens to still keep the user detail so when a user gets in the quiz modules on Guest mode, it is not recongnizing the user as a guest instead using the previous registered user's details. This only gets overwritten if the new user login with his/her uname and psw. But the problem is, we also have a guest mode where a user does not need to necessarily register to take the quizez.
Any idea will be highly appreciated.
Thanks a million