mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-02-07 04:51:14 -05:00
Set samesite for session ZMSESSID cookie for php < 7.3
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user