i found these questions, where the op has the same problem than me.
1 2
However, i can\'t solve my problem. The user press logout button, then the page is redi
you can try the following: create a session table where you store a session_id. when a user logs in, you create a session_id and store session id in the $_SESSION. every page you load, first you check if the session_id is available in the database. if not you go to the logging page. otherwise you load page and at the time of logout you delete session_id from database.
even though you can use the backbutton to go back no operation will be possible. you can also make the page non-cachable