I am using a cookie for my login page
for set the cookie:
setcookie("user",$value,time()+10000);
for check the cookie
if( !empty($_COOKIE[user]) )
check my db and ect ....
let say all of this code is in a file named "Login.php" and for logout I have a link In another file like this :
<a href='login.php?loguot=<?=$username?>'><?=$username?>[logaout]</a>
and in login.php
if( !empty($_GET[logout]) )
setcookie("user");
But the problem is this logout doesn't work!
What is wrong?
thanks.