note 9173 added to Session handling functions
| From: | cwible at cwible dot com | Date: | Thu, 19 Oct 2000 23:39:50 +0000 |
| Subject: | note 9173 added to Session handling functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6722@lists.php.net to get a copy of this message | ||
For those of you having problems with caching, PHP4 (when compiled with session support) adds four
headers to all responses! Pragma, Cache-Control, Last-Modified, and Expires. While the session
functions can control these, there is now way to let the browser perform caching on it's own.
If you want to change this, just change the following lines in ext/session/session.c and then
recompile.
CHANGE:
#define ADD_COOKIE(a) sapi_add_heade(a, strlen(a), 1);
TO
#define ADD_COOKIE(a)
http://www.php.net/manual/ref.session.php