From ea4c77e81db4544310005fe1d2205ad072864729 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Sat, 26 Jul 2014 19:37:29 +0000 Subject: [PATCH] Logout/Login: Clear session on login.php instead of logout.php - allows refresh to easily rotate background photos, if desired. --- login.php | 5 +++++ logout.php | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/login.php b/login.php index 93f6910254..d61406d994 100644 --- a/login.php +++ b/login.php @@ -25,6 +25,11 @@ */ include "root.php"; +//clear the session variables + session_start(); + session_unset(); + session_destroy(); + //if config.php file does not exist then redirect to the install page if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/resources/config.php")) { //do nothing diff --git a/logout.php b/logout.php index 91390a3bd3..fe44e1180d 100644 --- a/logout.php +++ b/logout.php @@ -26,11 +26,6 @@ include "root.php"; -//clear the session variables - session_start(); - session_unset(); - session_destroy(); - //redirect the user to the index page header("Location: ".PROJECT_PATH."/login.php"); return;