From 7cacb3fbd49cdd5b960242e5c988e94d823eae67 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 10 Sep 2019 13:38:23 +0200 Subject: New it_session::setcookie() which uses SameSite=Lax --- it_user.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_user.class') diff --git a/it_user.class b/it_user.class index 26046cf..a972130 100644 --- a/it_user.class +++ b/it_user.class @@ -205,7 +205,7 @@ function _set_uid($uid) if (!isset($_COOKIE[$this->p['uidcookiename']]) || ($_COOKIE[$this->p['uidcookiename']] != $uid)) { - @setcookie($this->p['uidcookiename'], $uid, _IT_USER_UID_COOKIE_LIFETIME, "/", $this->domain, false, true); + it_session::setcookie([ 'name' => $this->p['uidcookiename'], 'value' => $uid, 'expires' => _IT_USER_UID_COOKIE_LIFETIME, 'domain' => $this->domain, 'secure' => false ]); $_COOKIE[$this->p['uidcookiename']] = $uid; } } -- cgit v1.2.3