Pop\Web\Session::__construct PHP Method

__construct() private method

Private method to instantiate the session object. As part of the singleton pattern, it can only be called internally by the object itself.
private __construct ( ) : Session
return Session
    private function __construct()
    {
        // Start a session and set the session id.
        if (session_id() == '') {
            session_start();
            $this->sessionId = session_id();
        }
    }