mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 08:48:31 -04:00
Implement zm_setcookie to simplify setting cookies, set samesite, deal with older php etc. Use it.
This commit is contained in:
1 parent
dec440ead1
commit
db866fa668
4 files changed
+21
-24
No files matched your search
@@ -25,7 +25,7 @@ class Group extends ZM_Object {
|
||||
if ( isset($_COOKIE['zmGroup']) ) {
|
||||
if ( $this->{'Id'} == $_COOKIE['zmGroup'] ) {
|
||||
unset($_COOKIE['zmGroup']);
|
||||
setcookie('zmGroup', '', time()-3600*24*2);
|
||||
zm_setcookie('zmGroup', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user