question about session_cache_limiter()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

question about session_cache_limiter()

Post by gautamz07 »

hey guys i just have a question about session-cache-limiter http://php.net/manual/en/function.sessi ... imiter.php.

Now the documentation gives the following definition:
The cache limiter defines which cache control HTTP headers are sent to the client. These headers determine the rules by which the page content may be cached by the client and intermediate proxies. Setting the cache limiter to nocache disallows any client/proxy caching. A value of public permits caching by proxies and the client, whereas private disallows caching by proxies and permits the client to cache the contents.

In private mode, the Expire header sent to the client may cause confusion for some browsers, including Mozilla. You can avoid this problem by using private_no_expire mode. The Expire header is never sent to the client in this mode.

Setting the cache limiter to '' will turn off automatic sending of cache headers entirely.

The cache limiter is reset to the default value stored in session.cache_limiter at request startup time. Thus, you need to call session_cache_limiter() for every request (and before session_start() is called).
but what exactly are client's and intermediate proxies ?? i don't understand the menaing of these 2 words ? by client does it mean browser's ?

can anybody explain ?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: question about session_cache_limiter()

Post by Celauran »

The client is whatever is making the request. It will typically be a browser, but it could also be something like a cURL request.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: question about session_cache_limiter()

Post by gautamz07 »

and what is intermediate proxies ??
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: question about session_cache_limiter()

Post by gautamz07 »

Thank you :D :D :D
Post Reply