joecool2005 Posted April 24, 2006 Share Posted April 24, 2006 Hi,When people click "Back", is it possible to set the back page expired? How?ThxJoe Link to comment Share on other sites More sharing options...
justsomeguy Posted April 24, 2006 Share Posted April 24, 2006 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 More sharing options...
joecool2005 Posted April 24, 2006 Author Share Posted April 24, 2006 When someone pay with a credit card, a confirm page will be displayed. Then, when they click back, I don't want them to pay one more time. I want to display a expired page or something else.thx for your helpJoe Link to comment Share on other sites More sharing options...
justsomeguy Posted April 24, 2006 Share Posted April 24, 2006 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 More sharing options...
Dhanajee Posted May 14, 2006 Share Posted May 14, 2006 You should specify that a session has an expiry date and time,This will resolve the problem. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 15, 2006 Share Posted May 15, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now