protected function startSession(Request $request)
    {
        $this->gc();
        $this->session->setId($request->getCookies()->get($this->session->getName()));
        $this->sessionHandler->open(null, $this->session->getName());
        $sessionVars = @unserialize($this->sessionHandler->read($this->session->getId()));

        if ($sessionVars === false) {
            $sessionVars = [];
        }

        $this->session->start($sessionVars);
    }
protected function startSession(Request $request)
    {
        $this->gc();
        $this->session->setId($request->getCookies()->get($this->session->getName()));
        $this->sessionHandler->open(null, $this->session->getName());
        $sessionVars = @unserialize($this->sessionHandler->read($this->session->getId()));

        if ($sessionVars === false) {
            $sessionVars = [];
        }

        $this->session->start($sessionVars);
    }
protected function startSession ( Request $ request ) { $ this -> gc ( ) ; $ this -> session -> setId ( $ request -> getCookies ( ) -> get ( $ this -> session -> getName ( ) ) ) ; $ this -> sessionHandler -> open ( null , $ this -> session -> getName ( ) ) ; $ sessionVars = @ unserialize ( $ this -> sessionHandler -> read ( $ this -> session -> getId ( ) ) ) ; if ( $ sessionVars === false ) { $ sessionVars = [ ] ; } $ this -> session -> start ( $ sessionVars ) ; }
Starts the session

@param Request $request The current request
Starts the session