Skip to content

Commit

Permalink
[Provider] Session - start session if does not exists, refs #29
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Feb 23, 2017
1 parent 6737b9d commit 7ee1938
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ class Session implements SessionInterface
{
public function __construct()
{
session_start();
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
}

/**
Expand Down

0 comments on commit 7ee1938

Please sign in to comment.