Skip to content

Commit

Permalink
fix session_status to inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad-erdin committed May 8, 2017
2 parents de9cdd3 + 05174df commit c0acb3c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Slim/Middleware/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ protected function startSession()
$settings['httponly']
);


$inactive = session_status() === PHP_SESSION_NONE; // ignore PHP_SESSION_DISABLED
if ($inactive) {
// when using $active = session_status() === PHP_SESSION_ACTIVE;
Expand All @@ -110,9 +109,5 @@ protected function startSession()
if ($inactive) {
session_start();
}




}
}

0 comments on commit c0acb3c

Please sign in to comment.