I saw the other questions/answers related to this issue, but I couldn't find anything that explains it clearly.I want to know if there is any JavaScript code that refreshes the page when user presses the back button. Like in Facebook or Gmail, when you perform a log-out then press the back button, nothing happens; the page gets refreshed. I created a web project and when the user performed a log-out, then the session is terminated and it is redirected to the index page. But if the user wants he can go back through back button and see the information again.