#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    108
    Rep Power
    15
    Hello.

    Does anyone know a way for me to allow the user to "log out", once they are finished? Similar to the way most professional sites have a "log out" choice, so the screen won't come up next time (I like the way AOL does it). Any ideas?

    Thanks!
    yoshi
    datera@datera.com http://www.datera.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    14
    This is tied with how you track the user through your web app. Is it by sessions or manually by cookies??

    If you start a new session once a user has logged in, the logout script merely destroys that session, so that the user will have to log in again next time.

    If using cookies, then simply overwrite the cookie you placed on the client. Again, this will result in the user have to login again.

    Of course, no nedd (I hope) to mention that you have to develop a way to track users from page to page...
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Indonesia
    Posts
    87
    Rep Power
    14

    The best way to do it is using session (I think).
    When the user login store the user's variables in session variables and when the user logout destroy the variables.

    Don't forget to use PHP 4.0 or above !!

    See ya


    ------------------
    CyberOsc
    sphmjf_oscario@gurlmail.com

    ** It's the world of Oscario **
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    108
    Rep Power
    15
    Thank you for your replies.

    Sessions? Can you briefly explain how I can do that? I currently have the user fill out a form to log-in, and every page after that is passed the username and password variables (through POST).

    Thank you,
    yoshi
    datera@datera.com http://www.datera.com
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Boston, MA
    Posts
    54
    Rep Power
    15
    http://phpbuilder.com
    has a few introduction tutorial/articles to sessions and how to use them, its a good start.
    here is the url: http://phpbuilder.com/columns/
    look at the "Session Management"

    Rodrigo

    [This message has been edited by eduany (edited October 29, 2000).]

Similar Threads

  1. sites not working
    By hoffa in forum Apache Development
    Replies: 17
    Last Post: December 26th, 2003, 10:41 AM
  2. Configurin two sites on same folder
    By vikooyakoo in forum Apache Development
    Replies: 2
    Last Post: June 25th, 2003, 01:00 PM
  3. Looking for sites that list web sites that offer referrals
    By sstaubin in forum Dev Shed Lounge
    Replies: 0
    Last Post: May 8th, 2003, 10:46 PM
  4. Problems with running two SSL sites on apache 1.3.27
    By SuperShaz in forum Apache Development
    Replies: 13
    Last Post: February 21st, 2003, 06:16 PM

IMN logo majestic logo threadwatch logo seochat tools logo