I am adding a message which I got from PHP forum. I would like to know whether we can do something like this if we are using
servlets(Jrun-servlet engine and apache server).
"Author: Anthony Boyd (209.78.54.19)
Date: 2001-04-12 18:10:52
I am adding this comment months after the original message just in case someone is doing a search for this very problem. Because there is a perfect solution that is not mentioned here.
When you use PHP's sessions, you get "page expired" errors when using the back button because PHP's session management sends out a "nocache" header. You can change that header to instead send "private" or "public" and suddenly your back button will again. However, your pages will be outdated -- never grabbing fresh data, always showing the same listing. To solve this, you want to completely BLANK OUT the header. How do you do this? In php.ini, make the session.cache_limiter look like this:
session.cache_limiter = ;
That's right, no value. You do this, and viola, the cache control returns to "at the browser's discretion" -- which means, you always get fresh data, and you never see a "page expired" warning. Yay."
appreciate a reply
Beksy