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

Commit

Permalink
Release 4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette authored Mar 18, 2020
2 parents e9e2fed + 7b80314 commit 0269d53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [4.4.0]
- Version bump

## [4.3.0]
- Dropping support for PHP 5.6 & 7.0
- Updated dependencies
Expand Down Expand Up @@ -34,6 +37,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a


[#4]: https://github.com/userfrosting/session/pull/4
[4.4.0]: https://github.com/userfrosting/session/compare/4.3.0...4.4.0
[4.3.0]: https://github.com/userfrosting/session/compare/4.2.2...4.3.0
[4.2.2]: https://github.com/userfrosting/session/compare/4.2.1...4.2.2
[4.2.1]: https://github.com/userfrosting/session/compare/4.2.0...4.2.1
Expand Down
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 0269d53

Please sign in to comment.