src/Session/SessionMiddleware.php
private function attachPrivateNoExpireCacheLimiterHeader(ResponseInterface $response, int $time): ResponseInterface
    {
        $cache_expire = session_cache_expire();

        $max_age = $cache_expire * 60;
        $cache_control = "private, max-age={$max_age}";
        $last_modified = gmdate(self::DATE_FORMAT, $time);

        return $response
            ->withAddedHeader('Cache-Control', $cache_control)
            ->withAddedHeader('Last-Modified', $last_modified);
    }
private function attachPrivateNoExpireCacheLimiterHeader(ResponseInterface $response, int $time): ResponseInterface
    {
        $cache_expire = session_cache_expire();

        $max_age = $cache_expire * 60;
        $cache_control = "private, max-age={$max_age}";
        $last_modified = gmdate(self::DATE_FORMAT, $time);

        return $response
            ->withAddedHeader('Cache-Control', $cache_control)
            ->withAddedHeader('Last-Modified', $last_modified);
    }
private function attachPrivateNoExpireCacheLimiterHeader ( ResponseInterface $ response , int $ time ) : ResponseInterface { $ cache_expire = session_cache_expire ( ) ; $ max_age = $ cache_expire * 60 ; $ cache_control = "private, max-age={$max_age}" ; $ last_modified = gmdate ( self :: DATE_FORMAT , $ time ) ; return $ response -> withAddedHeader ( 'Cache-Control' , $ cache_control ) -> withAddedHeader ( 'Last-Modified' , $ last_modified ) ; }
Attach a private_no_expire cache limiter header to the given response.

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

@see https://github.com/php/php-src/blob/PHP-7.0/ext/session/session.c#L1286-L1295
Attach a private_no_expire cache limiter header to the given response .