Skip to content
Snippets Groups Projects
Commit 147a30d2 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

small code improvement, re #1552

parent 9c9efe1f
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,8 @@ return [ ...@@ -78,7 +78,8 @@ return [
$session_handler = new Studip\Session\DbSessionHandler(); $session_handler = new Studip\Session\DbSessionHandler();
} }
$GLOBALS['SESSION_OPTIONS']['path'] = $GLOBALS['CANONICAL_RELATIVE_PATH_STUDIP']; $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']); return new Studip\Session\Manager($session_handler, $GLOBALS['SESSION_OPTIONS']);
}), }),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment