diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-19 13:56:50 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-19 14:06:39 +0100 |
| commit | 147a30d22cad9f074a2f2a968a156e021ae59f33 (patch) | |
| tree | 4776010e7a6697337689fdae7ad25b71e79b9ae2 /lib | |
| parent | 9c9efe1fdd63c6ee6cb94fc5297cc0b50676658f (diff) | |
small code improvement, re #1552
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bootstrap-definitions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bootstrap-definitions.php b/lib/bootstrap-definitions.php index 06380a8..e9841b8 100644 --- a/lib/bootstrap-definitions.php +++ b/lib/bootstrap-definitions.php @@ -78,7 +78,8 @@ return [ $session_handler = new Studip\Session\DbSessionHandler(); } $GLOBALS['SESSION_OPTIONS']['path'] = $GLOBALS['CANONICAL_RELATIVE_PATH_STUDIP']; - $GLOBALS['SESSION_OPTIONS']['secure'] = Request::protocol() == 'https'; + $GLOBALS['SESSION_OPTIONS']['secure'] = Request::protocol() === 'https'; + return new Studip\Session\Manager($session_handler, $GLOBALS['SESSION_OPTIONS']); }), |
