X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=27e6f8e6746e407ebc98471d7891b007aff20d7e;hb=30fdef9a9671c9f8e0167f5737557717622a7b7d;hp=4712f742b57c608055646bb988da0cc5140d4701;hpb=aac0d5aae41709ca3a890e1bd064163a0d5f53d6;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index 4712f742..27e6f8e6 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -77,7 +77,6 @@ class SessionManager // Create new session without destroying the old one session_regenerate_id(); - // Grab current session ID and close both sessions to allow other scripts to use them $newSession = session_id(); session_write_close(); @@ -452,6 +451,14 @@ if (strstr($_SERVER['PHP_SELF'], 'logout.php') == false){ // Incorrect password login_fail(); } + elseif(isset($_SESSION['timeout']) && !$_SESSION['timeout']['post']) + { + // in case of GET request redirect to avoid confirmation dialog + // after return from menu option + header("HTTP/1.1 303 See Other"); + header("Location: ".$_SESSION['timeout']['uri']); + exit(); + } $lang = &$_SESSION['language']; $lang->set_language($_SESSION['language']->code); }