Page 1 of 1

sessions and Safari

Posted: Tue Mar 09, 2010 2:04 pm
by ggoose
Greetings,
I am creating a web site using sessions and upon logging out in both IE and FF I am directed to the login page when hitting the 'back' button (a good thing). My problem is after logging out with Safari and hitting the back button, it steps me through the entire history (a bad thing), though hitting any link while doing so will direct me to the login page. I am using session_cache_limiter(nocache) and, upon logout, session_destroy(), but to no avail. Any advice appreciated...prefer the good kind.
Thanks
ggoose

Re: sessions and Safari

Posted: Tue Mar 09, 2010 2:56 pm
by AbraCadaver
The browser is most likely caching the pages. This happens in IE and FF as well. The only thing I can think of is to send the different cache headers for every page telling the browser not to cache.

Re: sessions and Safari

Posted: Tue Mar 09, 2010 3:57 pm
by ggoose
Thanks for the reply AC,
AbraCadaver wrote:The browser is most likely caching the pages. This happens in IE and FF as well. The only thing I can think of is to send the different cache headers for every page telling the browser not to cache.
Yes, I thought that was the purpose of the session_cache_limiter(nocache) function - to tell the browser not to cache. Doesn't seem to help with Safari.
gene

Re: sessions and Safari

Posted: Fri Mar 12, 2010 12:23 pm
by kaisellgren
ggoose wrote:Thanks for the reply AC,
AbraCadaver wrote:The browser is most likely caching the pages. This happens in IE and FF as well. The only thing I can think of is to send the different cache headers for every page telling the browser not to cache.
Yes, I thought that was the purpose of the session_cache_limiter(nocache) function - to tell the browser not to cache. Doesn't seem to help with Safari.
gene
Not session_cache_limiter(), send HTTP caching headers. Here's a good resource: http://www.mnot.net/cache_docs/