SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keeping users logged in

    Hey guys, how would I go about doing this?

    Thanks in advance
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  2. #2
    SitePoint Guru Ize's Avatar
    Join Date
    Nov 2005
    Location
    The Netherlands
    Posts
    808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You want to use sessions to achieve this.
    Study this to learn more.

  3. #3
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Under what circumstances would you want them to stay logged in, and equally important, under what circumstances do you want them logged out ??
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming

  4. #4
    SitePoint Wizard
    Join Date
    Dec 2004
    Location
    At My Desk!!
    Posts
    1,642
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeh I am using sessions for my users loggin, Im building a forum and if the user clicks "keep me logged in", they need to stay logged in
    "Am I the only one doing ASP.NET in Delphi(Pascal)?"

  5. #5
    SitePoint Enthusiast Dromenail's Avatar
    Join Date
    Nov 2006
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Theres A Login Form on http://evolt.org/php_login_script_wi...ber_me_feature With A user System With A Remember Me feature Why Dont You just use That? it keeps them Logged in until They Click Logout, they Can reload The page As Much As They want And go To other Websites and when They Return They Will Still Be Logged in
    Callum Carolan

  6. #6
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think I'm right in saying that providing the user doesnt close the browser window and providing you dont close the session in the script, your user should stay logged in, even if they take a jaunt around other websites then return. If you want them to still be logged in after closing the browser window and revisiting your site with a newly opened window you'll need to use a cookie to tell your script their log in details.
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming


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
  •