CodeIgniter Forums

Full Version: Confirm Form Resubmission
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I get this error / warning whenever I click the browser back button.

Here is the process of the web pages.
1. There is a search page that the user puts information for searching
2. When the user clicks search, it goes to the controller and gets data from the model and puts this data in a view
3. When the list of data is displayed, the user can click on any of the rows and this will display the details for that row
4. When the user clicks on the back button of the browser when the details are being displayed, they get this error.

What is the proper way of handling this in CodeIgniter?

Thank you all for your responses.
So after Googling this issue, I found out that this is a Chrome browser issue. I tried the steps above in Safari and it does not happen.

Does anyone know how to handle this in Chrome?

Thank you again.
It's not a Chrome issue. You need to use a form token to verify a legit post. You basically set a session var or cookie with a unique value, and also load that value into a hidden form field. If on submission the cookie value matches the form field posted, you process the submission and replace the token in the cookie. Simple solution.