Forum Moderators: coopster

Message Too Old, No Replies

Trapping the browser Back button.

How do I maintain history when session driven

         

BitBanger

3:40 pm on Feb 2, 2004 (gmt 0)

10+ Year Member



I'm working on a web application that consists of two PHP files. The first is intended to do all the display work based on SESSION variables. The second file processes all of the _GET and _POST data, sets the necessary SESSION data then redirects to the first page.

This process seems to work well while operating the application, but fails miserably when the user uses the Back button on the browser. Since the application bases it's state on SESSION variables, the Back button has no effect at all.

Any suggestions on how this can be solved?

Thanks

coopster

4:08 pm on Feb 2, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There are a few suggestion in the PHP manual header() [php.net] function pages. Look right above the paragraph that states:


Additionally, session_cache_limiter() [php.net] and the
session.cache_limiter
configuration setting can be used to automatically generate the correct caching-related headers when sessions are being used.

BitBanger

5:07 pm on Feb 2, 2004 (gmt 0)

10+ Year Member



Thanks!

I see I have more reading to do! :) At least I know where to start.