Jump to content

expired page


joecool2005

Recommended Posts

You can use meta tags to set the expire date for each page to an earlier date, and it would force the browser to get the page each time (no caching). But different browsers do Back differently. Things like Opera just load the page that's already in cache and display exactly what you were looking at, but IE tries to reload the page generally. What are you trying to accomplish?

Link to comment
Share on other sites

You should be able to keep track of their order in a cookie, and then when they actually pay clear out the cookie. That way if they go back, they won't have an order in the cookie.But a programmer has to draw the line somewhere. If a user wants to keep hitting back and charging himself over and over, that's not really your problem. Just make sure that hitting back alone will not charge the user, there needs to be another step. From the time they get charged to when they see the results, have it go through a third page in the middle that redirects them to the result page. That way if they are on the result page and hit back, they go to the middle page, not the charge page.

Link to comment
Share on other sites

  • 3 weeks later...

Setting the session to expire will not affect how the back button works. You can set the expire date to be a very low value to make sure that if they hit the back button the session has already timed out, but if you do that then the session will already have expired even if they continue forward. What Joe was trying to do was to disable the back button without destroying the session.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...