PHP-Code:
if ($_GET['action']=='logout') {
setcookie ("user_name", "", time()-1000, "/");
setcookie ("user_id", "", time()-1000, "/");
setcookie ("user_pass", "", time()-1000, "/");
mysql_query("UPDATE $user_tname SET session=NULL WHERE id='".$_SESSION['user_id']."'");
session_destroy();
}
Kommentar