PHP session_cache_limiter() private and nocache HTTP Expires date question -
if @ php doc function session_cache_limiter(), see if cache_limiter parameter set private or nocache expires http header set const date (thu, 19 nov 1981 08:52:00 gmt). understand date in past avoid caching, why date/time in particular? it's not 0 date, guess kind of easter egg. if it's kind of dummy value in past, can change else (still in past) , still have private/nocache mechanism still working?
it birthday of person contributed code:
diffs: http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.80&r2=1.81
http://www.phpbuilder.com/lists/php3-list/199911/3159.php
to change it, preferable set headers manually, example nocache sets this:
expires: thu, 19 nov 1981 08:52:00 gmt cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma: no-cache
but still do:
session_cache_limiter('nocache') header('expires: thu, 1 jan 2000 00:00:00 gmt');
header replace existing header same name (by default).
Comments
Post a Comment