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 3b642fde97
commit e26aa6d0ae

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']