SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot zoso's Avatar
    Join Date
    Aug 2005
    Location
    Earth..
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    logging out user.

    I need to logout a user say 1 min after he has logged in.
    How can I do it?
    Also, can I have a timer to show him the time left?
    One way i think is session variables but i dont know how to use them.

  2. #2
    SitePoint Addict
    Join Date
    Aug 2004
    Location
    California
    Posts
    267
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The easiest way to do this is with cookies. Have the user log in, set a cookie to expire for X minutes, and validate and update this cookie on every page.
    The Banana Stand - an Arrested Development fansite
    LC-3 Help - tutorials on the LC-3 educational assembly language


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •