X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fsession.inc;h=27e6f8e6746e407ebc98471d7891b007aff20d7e;hb=85f86f5985c98cb9da31d583d0ab74280cd8b3a5;hp=9eb70019807a98852d6cb28a5aa76cc687d331fc;hpb=abe7fb7c2dc7f845e5577bc40c7361150ac83c94;p=fa-stable.git diff --git a/includes/session.inc b/includes/session.inc index 9eb70019..27e6f8e6 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -354,7 +354,6 @@ foreach ($installed_extensions as $ext) // ini_set('session.save_path', dirname(__FILE__).'/../tmp/'); ini_set('session.gc_maxlifetime', 36000); // 10hrs -ini_set('session.cache_limiter', 'private'); // prevent 'page expired' errors $Session_manager = new SessionManager(); $Session_manager->sessionStart('FA'.md5(dirname(__FILE__))); @@ -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); }