Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Mar 18, 2020
1 parent e9e2fed commit b7038a9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,14 @@ public function destroy($destroyCookie = true)
// Note: This will destroy the session, and not just the session data!
if ($destroyCookie && ini_get('session.use_cookies')) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 42000,
$params['path'], $params['domain'],
$params['secure'], $params['httponly']
setcookie(
session_name(),
'',
time() - 42000,
$params['path'],
$params['domain'],
$params['secure'],
$params['httponly']
);
}

Expand Down

0 comments on commit b7038a9

Please sign in to comment.