Follow Me:

Saturday 10 January 2015

How to resolved when Logged out sessions get restored by back button?

When we log out the sessions , We clear the cookies in browser. But when we press the back button after logging out the session gets restored. 
Solution:

 header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past

Categories: ,

3 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete