X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=37591d3489e8bdbceffdb78b28eece26c6053966;hb=063c5f22068dbbd6adccacaf5bd0f66b2eda8e4f;hp=4712f742b57c608055646bb988da0cc5140d4701;hpb=aac0d5aae41709ca3a890e1bd064163a0d5f53d6;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index 4712f742..37591d34 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(!$_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); }