Need to add a session_status check to call session_start in the Constructor of the Session Class
Issue #3
resolved
The if block below should be added to the constructor of \Vespula\Auth\Session\Session before attempting to access $_SESSION.
if( session_status() !== PHP_SESSION_ACTIVE ) {
session_start();
}
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Check for session and start if not started. Fixes
#3. Thanks Rotimi for the fix→ <<cset df1b769f3aa5>>
- Log in to comment
Sure. I was initially thinking of forcing the user to call session start on their own, but this will certainly work.