09-08-2007, 05:00 PM
Can anyone help me with signout code in php
say if i do this
setcookie('uname',$_POST['uname']);
after successful login authentication...no problem with that
and ther is a script called "logout.php" called when user click on logout
if i use
setcookie('uname');
isset($_COOKIE['uname']) returns true..
is there any way to unset or delete the cookie when isset($_COOKIE['uname']) would return false
say if i do this
setcookie('uname',$_POST['uname']);
after successful login authentication...no problem with that
and ther is a script called "logout.php" called when user click on logout
if i use
setcookie('uname');
isset($_COOKIE['uname']) returns true..
is there any way to unset or delete the cookie when isset($_COOKIE['uname']) would return false