[Web] Fix session timeout

master
andryyy 2017-07-26 23:09:50 +02:00
parent 5a49748dd5
commit 9bce8f0501
1 changed files with 3 additions and 0 deletions

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