Thread: How to Logout?

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Canada
    Posts
    16
    Rep Power
    0
    Hi, I wrote setcookie("visitor",$login,time()+1440);
    for users login,
    then I wrote
    setcookie("visitor","",time()+1440);
    for logout, but I didn't work, how come?

    or are there any ways to do that?
    Thanks a lot!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Annapolis, Maryland US
    Posts
    113
    Rep Power
    15
    Are you trying to remove the cookie?

    If so, try

    setcookie("visitor");

    Otherwise, I'm not quite following your post.

Similar Threads

  1. Jsp session can't invalidate... can't logout!!
    By hkarjohn in forum Java Help
    Replies: 0
    Last Post: February 12th, 2004, 11:45 PM
  2. logout of a session
    By sprak in forum PHP Development
    Replies: 2
    Last Post: November 26th, 2003, 08:09 PM
  3. Force a logout?
    By nickinnj in forum HTML Programming
    Replies: 0
    Last Post: October 20th, 2003, 07:17 PM
  4. Create a logout feature
    By namNASA in forum Java Help
    Replies: 5
    Last Post: September 20th, 2002, 11:28 AM
  5. sessions, login and logout
    By chu_man_fu in forum PHP Development
    Replies: 5
    Last Post: August 30th, 2001, 08:40 AM

IMN logo majestic logo threadwatch logo seochat tools logo