Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with Sessions

    Hi,

    I done the login page. In that i store the username and passwords in sessions.It works fine.But i want to change my login page code as
    "When we close the browser the login page will automatically logout especially for Mozilla."

    How can i resolve that problem.I am facing this problem from long days.Its urgent.Anybody please help to that problem.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    You could use cookies to save the login info, take a look at http://www.evolt.org/php_login_scrip...ber_me_feature
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Sessions usually only last till the browser is closed unless you are using cookies. Also why on earth would you be storing their password in a session? There is no need for this and its very insecure.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder kokjj87's Avatar
    Join Date
    Sep 2008
    Location
    Singapore
    Posts
    279
    Thanks
    1
    Thanked 55 Times in 54 Posts
    unless you restore the old session or else the session should end..
    If you are looking for persistent login(which most of the forum do...)... you can read up this implementation:

    http://jaspan.com/improved_persisten..._best_practice


  •  

    Posting Permissions

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