Ex:
Im having a form with a submit button.
When a user enters data and hits the submit button he is shown the data that he entered.
Now when a user clicks the refresh button it asks for retry/cancel. If he retries the data is entered again automatically by the browser. But I dont want that to happen. Once the form is sent and he refreshes the original page where the data is manually entered should appear or something. But NOT actually retry again.
Any idea how to overcome this ?
Thanks
Stop Browser from Retry
Moderator: General Moderators
Even better solution:
Build a scriptstack in your session.
And keep track which page is allowed/expected to be requested. If it is wrong, redirect to the expected page. For example, after a submit a user redirected to the 'index' page. If he hits the back button, hits refresh next, he will be redirected to index instead of having a double entry
Build a scriptstack in your session.
And keep track which page is allowed/expected to be requested. If it is wrong, redirect to the expected page. For example, after a submit a user redirected to the 'index' page. If he hits the back button, hits refresh next, he will be redirected to index instead of having a double entry