mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-03 03:59:16 +00:00
Merge pull request #6766 from mailcow/fix/samesite-cookie
[Web] set cookie SameSite attribute to Lax
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Start session
|
||||
if (session_status() !== PHP_SESSION_ACTIVE) {
|
||||
ini_set("session.cookie_httponly", 1);
|
||||
ini_set("session.cookie_samesite", "Lax");
|
||||
ini_set('session.gc_maxlifetime', $SESSION_LIFETIME);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user