mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
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:
parent
81e0b7fe18
commit
1fd559151b
1 changed files with 1 additions and 3 deletions
|
@ -52,9 +52,7 @@ function check_sid($dbh=NULL) {
|
|||
} elseif ($failed == 2) {
|
||||
# session id timeout was reached and they must login again.
|
||||
#
|
||||
$q = "DELETE FROM Sessions WHERE SessionID = '";
|
||||
$q.= db_escape_string($_COOKIE["AURSID"]) . "'";
|
||||
db_query($q, $dbh);
|
||||
delete_session_id($_COOKIE["AURSID"], $dbh);
|
||||
|
||||
setcookie("AURSID", "", 1, "/", null, !empty($_SERVER['HTTPS']), true);
|
||||
unset($_COOKIE['AURSID']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue