public function handleRequest(Request $request) : void
    {
        $this->reset();
        $this->readSessionId($request);

        if ($this->isTimeToCollectGarbage()) {
            $this->collectGarbage();
        }

        $this->inRequest = true;
    }
public function handleRequest(Request $request) : void
    {
        $this->reset();
        $this->readSessionId($request);

        if ($this->isTimeToCollectGarbage()) {
            $this->collectGarbage();
        }

        $this->inRequest = true;
    }
public function handleRequest ( Request $ request ) : void { $ this -> reset ( ) ; $ this -> readSessionId ( $ request ) ; if ( $ this -> isTimeToCollectGarbage ( ) ) { $ this -> collectGarbage ( ) ; } $ this -> inRequest = true ; }
Reads the session cookie from the request.

@param \Brick\Http\Request $request

@return void
Reads the session cookie from the request .