diff --git a/classes/config.php b/classes/config.php index 9f8b4a4c6..effbb78ad 100644 --- a/classes/config.php +++ b/classes/config.php @@ -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; diff --git a/include/sessions.php b/include/sessions.php index 84b1d722a..d4f21d8cd 100644 --- a/include/sessions.php +++ b/include/sessions.php @@ -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");