Skip to content

Commit 3b6e249

Browse files
committed
bring session settings in line with phpList core
1 parent e653ed2 commit 3b6e249

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ class updater
2626

2727
public function isAuthenticated()
2828
{
29-
session_start();
29+
30+
ini_set('session.name','phpListSession');
31+
ini_set('session.cookie_samesite','Strict');
32+
ini_set('session.use_only_cookies',1);
33+
ini_set('session.cookie_httponly',1); session_start();
3034
if (isset($_SESSION[self::ELIGIBLE_SESSION_KEY]) && $_SESSION[self::ELIGIBLE_SESSION_KEY] === true) {
3135
return true;
3236
}

0 commit comments

Comments
 (0)