Skip to content

Commit

Permalink
Login: Minor session adjustment to /index.php (allows refresh to chan…
Browse files Browse the repository at this point in the history
…ge background image, like /login.php).
  • Loading branch information
Nate Jones committed Jul 27, 2014
1 parent dca9d85 commit 1d18435
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,6 +45,12 @@
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";

Expand Down

0 comments on commit 1d18435

Please sign in to comment.