session_cache_expire
session_cache_expire
Get and/or set current cache expire
**session_cache_expire** $value
returns the current setting of
.
session_cache_expire``session.cache_expire
The cache expire is reset to the default value of 180 stored in
at request startup time. Thus,
you need to call for every
request (and before is called).
session.cache_expiresession_cache_expire``session_start
value
If is given and not null, the current cache
expire is replaced with .
value``value
> **Opmerking:** > Setting is of value only, if
is set to a value from . `value``session.cache_limiter`*different*`nocache`
Returns the current setting of .
The value returned should be read in minutes, defaults to 180.
On failure to change the value, false is returned.
session.cache_expire
Voorbeeld: example
<?php
/* set the cache limiter to 'private' */
session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
/* set the cache expire to 30 minutes */
session_cache_expire(30);
$cache_expire = session_cache_expire();
/* start the session */
session_start();
echo "The cache limiter is now set to $cache_limiter<br />";
echo "The cached session pages expire after $cache_expire minutes";
?>
session.cache_expiresession.cache_limitersession_cache_limiter