note 57892 added to function.session-cache-limiter

From: Date: Tue, 18 Oct 2005 11:41:33 +0000
Subject: note 57892 added to function.session-cache-limiter
Groups: php.notes 
Request: Send a blank email to php-notes+get-97160@lists.php.net to get a copy of this message
I've read the other comments and done some "reasearch" on my own. Using php's session mechanism and explicitly setting the "cache-control" header should not be mixed. When session_start() is called, the "cache-control" and "pragma" headers are automatically set by php (to whatever value had been specified using session_cache_limiter()). Explicitly setting those headers _before_ session_start() will have no effect, and explicitly setting them _after_ session_start() will overwrite the settings from session_cache_limiter(). If I had to deal with php sessions, I'd go for using session_cache_limiter() and leaving the headers alone. ---- Manual Page -- http://www.php.net/manual/en/function.session-cache-limiter.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57892 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57892&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57892&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57892&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57892&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57892&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57892&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57892&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57892&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97160) next »