mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
fix for missing url after login
This commit is contained in:
parent
317c90b38a
commit
56210b7c9e
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,7 @@ if(!isset($_SESSION['user_combined_ip'])){
|
|||
// Checking user to use session from the same IP he has been logged in
|
||||
if($_SESSION['user_combined_ip'] != $user_combined_ip){
|
||||
session_destroy();
|
||||
session_start();
|
||||
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
||||
header("Location: /login/");
|
||||
exit;
|
||||
|
@ -28,6 +29,7 @@ if($_SESSION['user_combined_ip'] != $user_combined_ip){
|
|||
// Check system settings
|
||||
if ((!isset($_SESSION['VERSION'])) && (!defined('NO_AUTH_REQUIRED'))) {
|
||||
session_destroy();
|
||||
session_start();
|
||||
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
||||
header("Location: /login/");
|
||||
exit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue