mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -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
|
// Checking user to use session from the same IP he has been logged in
|
||||||
if($_SESSION['user_combined_ip'] != $user_combined_ip){
|
if($_SESSION['user_combined_ip'] != $user_combined_ip){
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
session_start();
|
||||||
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
||||||
header("Location: /login/");
|
header("Location: /login/");
|
||||||
exit;
|
exit;
|
||||||
|
@ -28,6 +29,7 @@ if($_SESSION['user_combined_ip'] != $user_combined_ip){
|
||||||
// Check system settings
|
// Check system settings
|
||||||
if ((!isset($_SESSION['VERSION'])) && (!defined('NO_AUTH_REQUIRED'))) {
|
if ((!isset($_SESSION['VERSION'])) && (!defined('NO_AUTH_REQUIRED'))) {
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
session_start();
|
||||||
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
|
||||||
header("Location: /login/");
|
header("Location: /login/");
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue