[Web] Fix session timeout

This commit is contained in:
andryyy 2017-07-26 23:09:50 +02:00
parent 5a49748dd5
commit 9bce8f0501

View File

@ -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'])) {