Flarum\Http\Middleware\StartSession::withSessionCookie PHP Method

withSessionCookie() private method

private withSessionCookie ( Psr\Http\Message\ResponseInterface $response, Symfony\Component\HttpFoundation\Session\SessionInterface $session )
$response Psr\Http\Message\ResponseInterface
$session Symfony\Component\HttpFoundation\Session\SessionInterface
    private function withSessionCookie(Response $response, SessionInterface $session)
    {
        return FigResponseCookies::set($response, SetCookie::create($session->getName(), $session->getId())->withPath('/')->withHttpOnly(true));
    }