rework previous 32 bit session stuff

This commit is contained in:
Andrew Dolgov 2017-07-13 14:40:30 +03:00
parent e6d77d2b29
commit 09628e1b1a
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
require_once "lib/gettext/gettext.inc"; require_once "lib/gettext/gettext.inc";
require_once "version.php"; require_once "version.php";
$session_expire = max(SESSION_COOKIE_LIFETIME, 86400) & 0xFFFFFFFF; // clip to 32 bit $session_expire = min(2147483647 - time() - 1, max(SESSION_COOKIE_LIFETIME, 86400));
$session_name = (!defined('TTRSS_SESSION_NAME')) ? "ttrss_sid" : TTRSS_SESSION_NAME; $session_name = (!defined('TTRSS_SESSION_NAME')) ? "ttrss_sid" : TTRSS_SESSION_NAME;
if (@$_SERVER['HTTPS'] == "on") { if (@$_SERVER['HTTPS'] == "on") {