CodeIgniter Forums
CodeIgniter 3 with browser back button - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: CodeIgniter 3 with browser back button (/showthread.php?tid=81715)



CodeIgniter 3 with browser back button - thurin2000 - 04-16-2022

Hello everyone ! I would like to know how to avoid "Document expired" from browser when back button is pressed with CodeIgniter. Thank you for your answers


RE: CodeIgniter 3 with browser back button - ignitedcms - 04-16-2022

We need a little more information than that, but normally it occurs with not handling form POST success or fails properly.


RE: CodeIgniter 3 with browser back button - thurin2000 - 04-16-2022

In fact I have a search engine which displays results according to the query entered in the input field. I can click on that result and see that result in a bit more detail. But now when I want to return to the other results of the query, I have a "Document Expired" and I have to reload the page. This is the behavior I want to prevent. the requests are of type post.


RE: CodeIgniter 3 with browser back button - ignitedcms - 04-16-2022

I see, have you tried https://stackoverflow.com/questions/4401262/how-to-display-results-so-back-button-does-not-ask-to-reload-post-variables