Skip to content

Commit efdd1a3

Browse files
author
Marius Cramer
committed
Fixed: FS#3556 - Der in Session-Timeout eingegebene Wert wird nicht durch Aktivität verlängert
1 parent be2cbbe commit efdd1a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/lib/app.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ public function __construct() {
7878
$tmp = $this->ini_parser->parse_ini_string(stripslashes($tmp['config']));
7979
if(!isset($tmp['misc']['session_allow_endless']) || $tmp['misc']['session_allow_endless'] != 'y') {
8080
$this->session->set_timeout($sess_timeout);
81-
session_set_cookie_params(($sess_timeout * 60) + 300); // make the cookie live 5 minutes longer
81+
session_set_cookie_params(3600 * 24 * 365); // cookie timeout is never updated, so it must not be short
8282
} else {
8383
// we are doing login here, so we need to set the session data
8484
$this->session->set_permanent(true);
8585
$this->session->set_timeout(365 * 24 * 3600); // one year
86-
session_set_cookie_params(365 * 24 * 3600); // make the cookie live 5 minutes longer
86+
session_set_cookie_params(3600 * 24 * 365); // cookie timeout is never updated, so it must not be short
8787
}
8888
} else {
8989
$this->session->set_timeout($sess_timeout);
90-
session_set_cookie_params(($sess_timeout * 60) + 300); // make the cookie live 5 minutes longer
90+
session_set_cookie_params(3600 * 24 * 365); // cookie timeout is never updated, so it must not be short
9191
}
9292
} else {
9393
session_set_cookie_params(0); // until browser is closed

0 commit comments

Comments
 (0)