aur.inc.php: Use delete_session_id() where appropriate

Signed-off-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
canyonknight 2012-07-14 13:50:12 -04:00 committed by Lukas Fleischer
parent 81e0b7fe18
commit 1fd559151b

View file

@ -52,9 +52,7 @@ function check_sid($dbh=NULL) {
} elseif ($failed == 2) { } elseif ($failed == 2) {
# session id timeout was reached and they must login again. # session id timeout was reached and they must login again.
# #
$q = "DELETE FROM Sessions WHERE SessionID = '"; delete_session_id($_COOKIE["AURSID"], $dbh);
$q.= db_escape_string($_COOKIE["AURSID"]) . "'";
db_query($q, $dbh);
setcookie("AURSID", "", 1, "/", null, !empty($_SERVER['HTTPS']), true); setcookie("AURSID", "", 1, "/", null, !empty($_SERVER['HTTPS']), true);
unset($_COOKIE['AURSID']); unset($_COOKIE['AURSID']);