From daaca870366145c1ad895c4af12827ec8f6bbe86 Mon Sep 17 00:00:00 2001 From: Friedhelm Betz Date: Fri, 14 Mar 2003 14:50:35 +0000 Subject: [PATCH] more verbos description example added git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@120247 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/session-cache-expire.xml | 52 ++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/reference/session/functions/session-cache-expire.xml b/reference/session/functions/session-cache-expire.xml index e8ab3477ed..fb78559c1a 100644 --- a/reference/session/functions/session-cache-expire.xml +++ b/reference/session/functions/session-cache-expire.xml @@ -1,5 +1,5 @@ - + @@ -14,13 +14,53 @@ session_cache_expire returns the current setting of - session.cache_expire - from &php.ini;. If new_cache_expire is given, the - current cache expire is replaced with new_cache_expire. + session.cache_expire. The value returned should be read + in minutes, defaults to 180. If new_cache_expire + is given, the current cache expire is replaced with + new_cache_expire. - Also see the session.cache_expire - configuration directive. + The cache expire is reset to the default value of 180 stored in + session.cache_limiter at request startup time. Thus, + you need to call session_cache_expire for every + request (and before session_start is called). + + + <function>session_cache_expire</function> example + +"; +echo "The cached session pages expire after $cache_expire minutes"; +?> +]]> + + + + + Setting new_cache_expire is of value only, if + session.cache_limiter is set to a value + different from nocache. + + + + See also the configuration settings + session.cache_expire, + session.cache_limiter and session_cache_limiter.