Sfoglia il codice sorgente

fix for missing url after login

Serghey Rodin 9 anni fa
parent
commit
56210b7c9e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      web/inc/main.php

+ 2 - 0
web/inc/main.php

@@ -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;