Skip to content

Commit 56210b7

Browse files
author
Serghey Rodin
committed
fix for missing url after login
1 parent 317c90b commit 56210b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/inc/main.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// Checking user to use session from the same IP he has been logged in
2121
if($_SESSION['user_combined_ip'] != $user_combined_ip){
2222
session_destroy();
23+
session_start();
2324
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
2425
header("Location: /login/");
2526
exit;
@@ -28,6 +29,7 @@
2829
// Check system settings
2930
if ((!isset($_SESSION['VERSION'])) && (!defined('NO_AUTH_REQUIRED'))) {
3031
session_destroy();
32+
session_start();
3133
$_SESSION['request_uri'] = $_SERVER['REQUEST_URI'];
3234
header("Location: /login/");
3335
exit;

0 commit comments

Comments
 (0)