Skip to content

Commit 7ee1938

Browse files
committed
[Provider] Session - start session if does not exists, refs #29
1 parent 6737b9d commit 7ee1938

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Session/Session.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ class Session implements SessionInterface
99
{
1010
public function __construct()
1111
{
12-
session_start();
12+
if (session_status() == PHP_SESSION_NONE) {
13+
session_start();
14+
}
1315
}
1416

1517
/**

0 commit comments

Comments
 (0)