Click on the browser back, how to clear the form?

The first is a registration page: a.jsp
Then a
The last is shown successfully registered: c.html
A.jsp fill in the information submitted to the, if the information is correct redirect to c.html, but if I jump to c.html, I click back to a.jsp, but a.jsp in the form of information still exist, and then click again, and the registration of the existence of duplicate submission form, so the problem of.
I forbid to a.jsp cache, but no effect, prevent the Internet to see repeated submission form methods are useless.
Please tell me what method?

Started by York at February 07, 2016 - 1:23 PM

The background control, jump to have registration page

Posted by Henry at November 14, 2016 - 10:11 AM

Click again, the register

When registering did not verify whether the user is registered do this?
And verify whether the registered code

Posted by Norman at November 22, 2016 - 10:28 AM

Session_cache_limiter in the file header plus('nocache');
Or add<META NAME="save" CONTENT="history">

Posted by Burnell at December 01, 2016 - 10:35 AM

The statement did not understand, my JSP page

Posted by York at December 10, 2016 - 11:08 AM

You should use the registered user name validation, you must verify that this username is already registered the registry form.

Posted by Yale at December 23, 2016 - 11:32 AM

When presented can query the database to see whether users exist, if not good enough

You are what you can do
When you registered you can deposit a newly registered users in session
When you click on the registration can compare 2 user username
In order to prevent the submission
Don't know if I can help you

Posted by Eudora at January 02, 2017 - 11:59 AM

Registration will generally is repeated in the background check the user name, so it will not appear this kind of circumstance
For the general did not verify the repeating form can add token, Baidu.

Posted by Maximilian at January 03, 2017 - 12:42 PM

Some browsers will seem to have this situation not just add a after form<script>document.forms[0].reset();</script>

Posted by Spike at January 15, 2017 - 12:26 PM