What is the proper way to logout from php http authentication?

Discussion in 'PHP' started by salsan, Oct 15, 2010.

  1. #1
    What is the proper way to logout from php http authentication?
     
    salsan, Oct 15, 2010 IP
  2. lomb

    lomb Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For what script are you using this or do you mean the session in which case its

    session_destroy();
     
    lomb, Oct 16, 2010 IP
  3. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    and for overkill you can unset all the session vars :D
    unset($SESSION['blah']);
     
    scriptinstaller, Oct 23, 2010 IP
  4. lukefowell89

    lukefowell89 Peon

    Messages:
    182
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    its suprisingly simple to logout of a PHP based-system, I always thought it would be more complicated
     
    lukefowell89, Oct 25, 2010 IP
  5. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #5
    danx10, Oct 25, 2010 IP