From 4580c4575ced29c6653e888fd6f852a2dfc615a8 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 22 Jul 2022 17:07:36 +0700 Subject: [PATCH] rolled back setcookie args Signed-off-by: Abdul Malik Ikhsan --- src/SessionManager.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/SessionManager.php b/src/SessionManager.php index 3247ea52..e151873c 100644 --- a/src/SessionManager.php +++ b/src/SessionManager.php @@ -444,13 +444,11 @@ public function expireSessionCookie() setcookie( $this->getName(), // session name '', // value - [ - 'expires' => $_SERVER['REQUEST_TIME'] - 42000, // TTL for cookie - 'path' => $config->getCookiePath(), - 'domain' => $config->getCookieDomain(), - 'secure' => (bool) $config->getCookieSecure(), - 'httponly' => (bool) $config->getCookieHttpOnly(), - ] + $_SERVER['REQUEST_TIME'] - 42000, // TTL for cookie + $config->getCookiePath(), + $config->getCookieDomain(), + (bool) $config->getCookieSecure(), + (bool) $config->getCookieHttpOnly() ); }