Skip to content

Commit

Permalink
rolled back setcookie args
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Jul 22, 2022
1 parent 1141eb6 commit 4580c45
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}

Expand Down

0 comments on commit 4580c45

Please sign in to comment.