From 9bce8f050109b6398b94bb60062efbfe0058e33a Mon Sep 17 00:00:00 2001 From: andryyy Date: Wed, 26 Jul 2017 23:09:50 +0200 Subject: [PATCH] [Web] Fix session timeout --- data/web/inc/sessions.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/web/inc/sessions.inc.php b/data/web/inc/sessions.inc.php index d23d2cba..949f9ab6 100644 --- a/data/web/inc/sessions.inc.php +++ b/data/web/inc/sessions.inc.php @@ -26,6 +26,9 @@ if (!isset($_SESSION['SESS_REMOTE_UA'])) { $_SESSION['SESS_REMOTE_UA'] = $_SERVER['HTTP_USER_AGENT']; } +// Update session cookie +setcookie(session_name() ,session_id(), time() + $SESSION_LIFETIME); + // Check session function session_check() { if (!isset($_SESSION['SESS_REMOTE_UA'])) {