mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Logout/Login: Clear session on login.php instead of logout.php - allows refresh to easily rotate background photos, if desired.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user