summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-05-11 19:21:53 +0300
committerAndrew Dolgov <[email protected]>2021-05-11 19:21:53 +0300
commite3c4724dc1a44956e301897995c5edca03477a16 (patch)
treecab0f809f8eb912c31407dec710d381175277531 /include
parent82749ee7a7d244ec0f65cd529bfb09e6960a109a (diff)
use database-backed sessions in single user mode
Diffstat (limited to 'include')
-rw-r--r--include/sessions.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/sessions.php b/include/sessions.php
index 9044c609b..7f61f6dbe 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -106,13 +106,11 @@
}
if (\Config::get_schema_version() >= 0) {
- if (!\Config::get(\Config::SINGLE_USER_MODE)) {
- session_set_save_handler('\Sessions\ttrss_open',
- '\Sessions\ttrss_close', '\Sessions\ttrss_read',
- '\Sessions\ttrss_write', '\Sessions\ttrss_destroy',
- '\Sessions\ttrss_gc');
- register_shutdown_function('session_write_close');
- }
+ session_set_save_handler('\Sessions\ttrss_open',
+ '\Sessions\ttrss_close', '\Sessions\ttrss_read',
+ '\Sessions\ttrss_write', '\Sessions\ttrss_destroy',
+ '\Sessions\ttrss_gc');
+ register_shutdown_function('session_write_close');
if (!defined('NO_SESSION_AUTOSTART')) {
if (isset($_COOKIE[session_name()])) {