session_cache_limiter() returns the name of the current cache limiter. The cache_limiter defines which cache control HTTP headers are sent to the client that determines which page content may be cached by the client and intermediate proxies. If we set the cache limiter to nocache, it wont allow any client/proxy caching while public caching allows the caching through the proxy and the clients. On the other hand, the private caching disallows caching by proxies and permits the client to cache the contents.
If cache_limiter is specified, the name of the current cache limiter is changed to the new value.
Let's see the example:
$cachelimiter = session_cache_limiter();
$cacheexpire = session_cache_expire();
echo "gooooood"."<br />";
echo "The cache limiter is now set to $cachelimiter<br />";
echo "The cached session pages expire after $cacheexpire min";
The cache limiter is now set to roseindia.
The cached session pages expires after 180 minutes.
Ask your questions, our development team will try to give answers to your questions.