src/Session/SessionMiddleware.php
private function attachSessionHeaders(ResponseInterface $response): ResponseInterface
    {
        $time = time();

        $response = $this->attachCacheLimiterHeader($response, $time);
        $response = $this->attachSessionCookie($response, $time);

        return $response;
    }
private function attachSessionHeaders(ResponseInterface $response): ResponseInterface
    {
        $time = time();

        $response = $this->attachCacheLimiterHeader($response, $time);
        $response = $this->attachSessionCookie($response, $time);

        return $response;
    }
private function attachSessionHeaders ( ResponseInterface $ response ) : ResponseInterface { $ time = time ( ) ; $ response = $ this -> attachCacheLimiterHeader ( $ response , $ time ) ; $ response = $ this -> attachSessionCookie ( $ response , $ time ) ; return $ response ; }
Attach the session headers to the given response.

Trying to emulate the default php 7.0 headers generations. Adapted from
Relay.Middleware SessionHeadersHandler.

@param \Psr\Http\Message\ResponseInterface $response
@return \Psr\Http\Message\ResponseInterface

@see https://github.com/relayphp/Relay.Middleware/blob/1.x/src/SessionHeadersHandler.php
Attach the session headers to the given response .