Login: Minor session adjustment to /index.php (allows refresh to change background image, like /login.php).

This commit is contained in:
Nate Jones 2014-07-27 00:56:45 +00:00
parent dca9d859be
commit 1d1843532b
1 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,7 @@
*/
include "root.php";
//clear the session variables
// start the session
session_start();
//if config.php file does not exist then redirect to the install page
@ -45,6 +45,12 @@ include "root.php";
exit;
}
// if not logged in, clear the session variables
if (strlen($_SESSION["username"]) == 0) {
session_unset();
session_destroy();
}
//adds multiple includes
require_once "resources/require.php";