diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-21 16:03:40 -0500 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-10-24 17:57:53 +0200 |
commit | e6ecdcc835e9a612e5c5842867c01f0efdceb789 (patch) | |
tree | 5f534e7e27d54a69212831f93dac6aca06b742c4 /web/html/logout.php | |
parent | 8dc7b37909887dbeabc58cb22a33f6e0fb038bcf (diff) | |
download | aurweb-e6ecdcc835e9a612e5c5842867c01f0efdceb789.tar.xz |
Require DB handle for most user account functions
This affects login the most, where we save about 4 calls to db_connect()
by passing a single handle into functions where necessary.
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/logout.php')
-rw-r--r-- | web/html/logout.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/html/logout.php b/web/html/logout.php index 1cdf453..9d0e7a9 100644 --- a/web/html/logout.php +++ b/web/html/logout.php @@ -17,9 +17,8 @@ if (isset($_COOKIE["AURSID"])) { # setting expiration to 1 means '1 second after midnight January 1, 1970' setcookie("AURSID", "", 1, "/", null, !empty($_SERVER['HTTPS']), true); unset($_COOKIE['AURSID']); + clear_expired_sessions($dbh); } -clear_expired_sessions(); - header('Location: index.php'); |