FluxBB\Web\SessionKernel::writeSessionTo PHP Method

writeSessionTo() protected method

Write the session cookie to the response.
protected writeSessionTo ( Response $response ) : void
$response Symfony\Component\HttpFoundation\Response
return void
    protected function writeSessionTo(Response $response)
    {
        // TODO: Take these values from config
        $lifetime = Carbon::now()->addMinutes(120);
        $path = '/';
        $domain = null;
        $secure = false;
        $response->headers->setCookie(new Cookie($this->session->getName(), $this->session->getId(), $lifetime, $path, $domain, $secure));
    }