Skip to content

Commit

Permalink
remove IE session cookie fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared King committed Dec 29, 2018
1 parent ac433ef commit 7520b23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Can disable sessions per route.
- The application now implements `HttpKernelInterface` to enhance compatibility with other libraries.

### Removed
- Removed session cookie fix for older versions of Internet Explorer.

## 1.6 - 2017-12-02
### Changed
- Support Symfony 4.
Expand Down
14 changes: 1 addition & 13 deletions src/Middleware/SessionMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @author Jared King <j@jaredtking.com>
*
* @link http://jaredtking.com
* @see http://jaredtking.com
*
* @copyright 2015 Jared King
* @license MIT
Expand All @@ -14,7 +14,6 @@
use Infuse\HasApp;
use Infuse\Request;
use Infuse\Response;
use Infuse\Utility;

class SessionMiddleware
{
Expand Down Expand Up @@ -68,17 +67,6 @@ public function __invoke(Request $req, Response $res, callable $next)

session_start();

// fix the session cookie
Utility::setCookieFixDomain(
session_name(),
session_id(),
time() + $lifetime,
'/',
$hostname,
$req->isSecure(),
true
);

// make the newly started session in our request
$req->setSession($_SESSION);

Expand Down

0 comments on commit 7520b23

Please sign in to comment.