Skip to content

Commit

Permalink
added secure flag on session cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
notrinos committed Mar 7, 2022
1 parent 9373fc5 commit a6196b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/session.inc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
***********************************************************************/
define('VARLIB_PATH', $path_to_root.'/tmp');
define('VARLOG_PATH', $path_to_root.'/tmp');
define('SECURE_ONLY', null);

class SessionManager {
function sessionStart($name, $limit=0, $path='/', $domain=null, $secure=null) {
Expand Down Expand Up @@ -358,7 +359,7 @@ foreach ($installed_extensions as $ext) {
ini_set('session.gc_maxlifetime', 36000); // moved from below.

$Session_manager = new SessionManager();
$Session_manager->sessionStart('Notrinos'.md5(dirname(__FILE__)));
$Session_manager->sessionStart('Notrinos'.md5(dirname(__FILE__)), 0, '/', null, SECURE_ONLY);

$_SESSION['SysPrefs'] = new sys_prefs();

Expand Down

0 comments on commit a6196b0

Please sign in to comment.