When I add data, many times the page has been refreshed, resulting in a number of days to repeat multiple additions
The pit has the user network bad time will read the bar and then the user will refresh the tragedy happened
How do I stop this kind of thing?
Reply content:
When I add data, many times the page has been refreshed, resulting in a number of days to repeat multiple additions
The pit has the user network bad time will read the bar and then the user will refresh the tragedy happened
How do I stop this kind of thing?
The use of session,session is the server-side data, as long as the planting no longer refresh its value is not changed, it is possible to use this to prevent users from repeating the data submission
Your problem is actually to prevent the form to repeat the problem, you can use to generate a token in the session, also put a copy in the form, and then verify the table only son come over the token, and clear the session