From: Lewis B. <lbe...@ab...> - 2001-01-15 20:55:47
|
On Mon, 15 Jan 2001, you wrote: > Option 3 has NO cache limiting headers. I never figured out how to keep PHP > from sending these if the page has session support. > -Matt Would the following help? http://www.php.net/manual/en/function.session-cache-limiter.php session_cache_limiter (PHP 4 >= 4.0.3) 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). -- Lewis Bergman Texas Communications 4309 Maple St. Abilene, TX 79602 915-695-6962 |