summaryrefslogtreecommitdiffstats
path: root/web/html/logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/logout.php')
-rw-r--r--web/html/logout.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/html/logout.php b/web/html/logout.php
index 14c652e..95cf460 100644
--- a/web/html/logout.php
+++ b/web/html/logout.php
@@ -14,8 +14,9 @@ if (isset($_COOKIE["AURSID"])) {
$q = "DELETE FROM Sessions WHERE SessionID = '";
$q.= mysql_real_escape_string($_COOKIE["AURSID"]) . "'";
db_query($q, $dbh);
- setcookie("AURSID", "", time() - (60*60*24*30), "/");
- setcookie("AURLANG", "", time() - (60*60*24*30), "/");
+ # setting expiration to 1 means '1 second after midnight January 1, 1970'
+ setcookie("AURSID", "", 1, "/");
+ unset($_COOKIE['AURSID']);
}
clear_expired_sessions();