Log out - Php

Discussion in 'PHP' started by dan86, Aug 28, 2008.

  1. #1
    Hi,

    I am having a problem with my website and really need some help cos can't really find a solution on my own and tried loads of tutorials.

    When i "log out" of the website and press the back button i, the website returns to the previous page. ie.. the user does not really log out at all..

    how can i avoid this and make sure that once i press log out, and press the back button i will be directed to the log in page?

    10x
     
    dan86, Aug 28, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    
    header('Cache-Control: private');
    
    PHP:
    ... at the top of all pages.
     
    nico_swd, Aug 28, 2008 IP