Add new config parameter SESSION_HANDLER

This commit is contained in:
Matthias Straka
2020-07-07 06:30:27 +02:00
committed by GitHub
parent b5d8eed98e
commit 6c4665b3ca
3 changed files with 9 additions and 1 deletions

View File

@@ -38,7 +38,9 @@ class SessionManager extends Base
*/
public function open()
{
session_set_save_handler(new SessionHandler($this->db), true);
if (SESSION_HANDLER === 'db') {
session_set_save_handler(new SessionHandler($this->db), true);
}
$this->configure();