From 8fd0f380777ecdb0e465de19b250efb6665f06d7 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Sat, 2 Sep 2000 00:51:27 +0000 Subject: [PATCH] Documenting the new session_cache_limiter function. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@31722 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/session.xml | 60 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/functions/session.xml b/functions/session.xml index 6d2d933a3a..8438fa4d4c 100644 --- a/functions/session.xml +++ b/functions/session.xml @@ -832,6 +832,64 @@ session_start(); + + + session_cache_limiter + Get and/or set the current cache limiter + + + Description + + + string session_cache_limiter + string + cache_limiter + + + + + session_cache_limiter returns the name of the + current cache limiter. If cache_limiter is + specified, the name of the current cache limiter is changed to the + new value. + + + The cache limiter controls the cache control HTTP headers sent to the + client. These headers determine the rules by which the page content + may be cached. Setting the cache limiter to nocache, + for example, would disallow any client-side caching. A value of + public, however, would permit caching. It can also + be set to private, which is slightly more restrictive + than public. + + + 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). + + + <function>session_cache_limiter</function> examples + +<?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<p>"; +?> + + + + + This function was added in PHP 4.0.3. + + + + + \ No newline at end of file +-->