[Web] Fix session timeout
This commit is contained in:
parent
5a49748dd5
commit
9bce8f0501
@ -26,6 +26,9 @@ if (!isset($_SESSION['SESS_REMOTE_UA'])) {
|
|||||||
$_SESSION['SESS_REMOTE_UA'] = $_SERVER['HTTP_USER_AGENT'];
|
$_SESSION['SESS_REMOTE_UA'] = $_SERVER['HTTP_USER_AGENT'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update session cookie
|
||||||
|
setcookie(session_name() ,session_id(), time() + $SESSION_LIFETIME);
|
||||||
|
|
||||||
// Check session
|
// Check session
|
||||||
function session_check() {
|
function session_check() {
|
||||||
if (!isset($_SESSION['SESS_REMOTE_UA'])) {
|
if (!isset($_SESSION['SESS_REMOTE_UA'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user