PHP.nl

session_cache_limiter

session_cache_limiter

Get and/or set the current cache limiter

 **session_cache_limiter**  $value
returns the name of the

current cache limiter. session_cache_limiter

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 disallows any client/proxy caching. A value of permits caching by proxies and the client, whereas disallows caching by proxies and permits the client to cache the contents. nocache``public``private

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

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

at request startup time. Thus, you need to call for every request (and before is called). session.cache_limitersession_cache_limiter``session_start

value If is specified and not null, the name of the current cache limiter is changed to the new value. value

Returns the name of the current cache limiter. On failure to change the value, false is returned.

Voorbeeld: example

<?php

/* set the cache limiter to 'private' */

session_cache_limiter('private');
$cache_limiter = session_cache_limiter();

echo "The cache limiter is now set to $cache_limiter<br />";
?>

session.cache_limiter