John John - 1 year ago 75
PHP Question

Allowing users to Refresh browser without the "Confirm Form Resubmission" pop-up

I have a login system, and while logged in, if I refresh the browser, Chrome shows a pop up window titled "Confirm Form Resubmission." I assume that the same thing would happen with other browsers.

How can I allow the browser to be refreshed without this confirmation pop-up window? Of course, I would also like to stay logged in while refreshing the browser.

Answer Source

After processing the POST page, redirect the user to the same page.



This will get rid of the box, as refreshing the page will not resubmit the data.