php - After submitting a form and redirecting back to the same page, how can I prevent the browser's back button from simply reloading the same page again? -


page 1 homepage.

page 2 forum discussion.

page 3 comment submission back-end code.

if user goes homepage (page 1) discussion page (page 2) , submits comment, page 3 used insert comment database , redirect user (using header redirect) discussion (page 2). if user clicks browser's button, takes them earlier version of page 2, when in fact want them go homepage (page 1).

is there way this?


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -