Losing variable values after login or logout |
8/2/2007 18:39:46 | |
| PHPRunner General questions | ||
|
Hi, |
||
|
|
Sergey Kornilov admin 8/2/2007 |
|
This involves two steps: if(@$_POST["a"]=="logout" || @$_GET["a"]=="logout") { session_unset(); // add your code here setcookie("username","",time()-365144060); setcookie("password","",time()-365144060); header("Location: login.php"); exit(); } |
|