From cf2a82fe8578bd10187157bd884b3f109f0b5201 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Thu, 13 Nov 2008 15:18:48 -0500 Subject: Clear out old expired sessions on log out. Signed-off-by: Loui Chang --- web/html/logout.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'web/html/logout.php') diff --git a/web/html/logout.php b/web/html/logout.php index c1c376c..41dedc3 100644 --- a/web/html/logout.php +++ b/web/html/logout.php @@ -3,7 +3,7 @@ set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang'); include("aur.inc"); # access AUR common functions -include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages +include_once("acctfuncs.inc"); # access AUR common functions include("logout_po.inc"); # use some form of this for i18n support set_lang(); # this sets up the visitor's language @@ -19,8 +19,7 @@ if (isset($_COOKIE["AURSID"])) { setcookie("AURLANG", "", time() - (60*60*24*30), "/"); } +clear_expired_sessions(); + header('Location: index.php'); -exit; -html_footer(AUR_VERSION); -?> -- cgit v1.2.3-70-g09d2