src/Session/SessionMiddleware.php
private function attachCacheLimiterHeader(ResponseInterface $response, int $time): ResponseInterface
    {
        $cache_limiter = session_cache_limiter();

        switch ($cache_limiter) {
            case 'public':
                return $this->attachPublicCacheLimiterHeader($response, $time);
            case 'private':
                return $this->attachPrivateCacheLimiterHeader($response, $time);
            case 'private_no_expire':
                return $this->attachPrivateNoExpireCacheLimiterHeader($response, $time);
            case 'nocache':
                return $this->attachNocacheCacheLimiterHeader($response);
            default:
                return $response;
        }
    }
private function attachCacheLimiterHeader(ResponseInterface $response, int $time): ResponseInterface
    {
        $cache_limiter = session_cache_limiter();

        switch ($cache_limiter) {
            case 'public':
                return $this->attachPublicCacheLimiterHeader($response, $time);
            case 'private':
                return $this->attachPrivateCacheLimiterHeader($response, $time);
            case 'private_no_expire':
                return $this->attachPrivateNoExpireCacheLimiterHeader($response, $time);
            case 'nocache':
                return $this->attachNocacheCacheLimiterHeader($response);
            default:
                return $response;
        }
    }
private function attachCacheLimiterHeader ( ResponseInterface $ response , int $ time ) : ResponseInterface { $ cache_limiter = session_cache_limiter ( ) ; switch ( $ cache_limiter ) { case 'public' : return $ this -> attachPublicCacheLimiterHeader ( $ response , $ time ) ; case 'private' : return $ this -> attachPrivateCacheLimiterHeader ( $ response , $ time ) ; case 'private_no_expire' : return $ this -> attachPrivateNoExpireCacheLimiterHeader ( $ response , $ time ) ; case 'nocache' : return $ this -> attachNocacheCacheLimiterHeader ( $ response ) ; default : return $ response ; } }
Attach a session cache limiter header to the given response.

@param \Psr\Http\Message\ResponseInterface   $response
@param int                                   $time
@return \Psr\Http\Message\ResponseInterface
Attach a session cache limiter header to the given response .