rename TTRSS_SESSION_NAME to SESSION_NAME

master
Andrew Dolgov 4 years ago
parent ab4dafa4be
commit 85095f8a53

@ -52,7 +52,7 @@ class Config {
const LOG_SENT_MAIL = "LOG_SENT_MAIL";
const HTTP_PROXY = "HTTP_PROXY";
const FORBID_PASSWORD_CHANGES = "FORBID_PASSWORD_CHANGES";
const TTRSS_SESSION_NAME = "TTRSS_SESSION_NAME";
const SESSION_NAME = "SESSION_NAME";
private const _DEFAULTS = [
Config::DB_TYPE => [ "pgsql", Config::T_STRING ],
@ -101,7 +101,7 @@ class Config {
Config::LOG_SENT_MAIL => [ "", Config::T_BOOL ],
Config::HTTP_PROXY => [ "", Config::T_STRING ],
Config::FORBID_PASSWORD_CHANGES => [ "", Config::T_BOOL ],
Config::TTRSS_SESSION_NAME => [ "ttrss_sid", Config::T_STRING ],
Config::SESSION_NAME => [ "ttrss_sid", Config::T_STRING ],
];
private static $instance;

@ -7,7 +7,7 @@
require_once "lib/gettext/gettext.inc.php";
$session_expire = min(2147483647 - time() - 1, max(\Config::get(\Config::SESSION_COOKIE_LIFETIME), 86400));
$session_name = \Config::get(\Config::TTRSS_SESSION_NAME);
$session_name = \Config::get(\Config::SESSION_NAME);
if (is_server_https()) {
ini_set("session.cookie_secure", "true");

Loading…
Cancel
Save