note 8252 added to Session handling functions
| From: | scott_chacon at yahoo dot com | Date: | Fri, 01 Sep 2000 19:51:28 +0000 |
| Subject: | note 8252 added to Session handling functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3890@lists.php.net to get a copy of this message | ||
This took me a while to figure out :
I wanted to use session management for my pages where the data changes all the time, and i want
people to be able to print things out. This causes a problem, because by default the session
management cache_limiter (in php.ini) is set to nocache, which makes it impossible to print or use
the back button. If i change it to public or private, it makes it so i can print, but when the data
changes, the page does not display it, it displays the cached version - this is a headache. Through
trail and error, i figured out that you can leave the cache setting alone (up to the browser) by
making the setting
session.cache_limiter = ; (leaving it blank)
instead of one of (nocache, public, private)
So if you want the cache to act like it did before you added the session management, just blank the
setting out.
http://www.php.net/manual/ref.session.php