logout a particular session

Discussion in 'PHP' started by newbie12345, May 12, 2010.

  1. #1
    i was wondering how do u logout a particular session

    this is the session that i want to logout

    $_SESSION['u_name']=$user;
    PHP:
    basically i want to create a log-out script


    thanks you
     
    newbie12345, May 12, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    unset($_SESSION['u_name']);
    PHP:
     
    danx10, May 12, 2010 IP
  3. newbie12345

    newbie12345 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ur the best it work

    tnx alot
     
    newbie12345, May 12, 2010 IP