Set samesite for session ZMSESSID cookie for php < 7.3

This commit is contained in:
Isaac Connor
2022-05-10 17:48:16 -04:00
parent bc8677e333
commit 51ffc05c4d

View File

@@ -30,7 +30,7 @@ function zm_session_start() {
if ( version_compare(phpversion(), '7.3.0', '<') ) {
session_set_cookie_params(
$currentCookieParams['lifetime'],
$currentCookieParams['path'],
$currentCookieParams['path'].'; samesite=strict',
$currentCookieParams['domain'],
$currentCookieParams['secure'],
$currentCookieParams['httponly']