My site flow is as follows:
+ step 1: page 1 for data input and submit
+ step 2: page 2 processes the data submitted and redirect to a result page
The problem is: At the result page, the user can press Back (resulting to page 1 again) and re-submit again.
Please help me a solution to prevent this?
Thanks a lot.
Prevent user from Back and re-submit
Moderator: General Moderators
-
hoangvu.che
- Forum Newbie
- Posts: 19
- Joined: Thu Mar 22, 2007 9:54 pm
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
If you're trying to create a "unique" submission system for something like voting, you're outta luck, man. Anything can be circumvented.
Depending on the level of protection you're looking for, you could:
* Set a cookie, indicating the user had already submitted the form
* Record the submission to the user's session
* Log the user's IP address
* Require the user to login with a valid email address
Depending on the level of protection you're looking for, you could:
* Set a cookie, indicating the user had already submitted the form
* Record the submission to the user's session
* Log the user's IP address
* Require the user to login with a valid email address
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US