Remember session till the next time I log in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpuser123
    New Member
    • Dec 2009
    • 108

    Remember session till the next time I log in

    I have visited various sites n when I log in,there is an option
    "remember me"

    I want to know how this works....Do they use a cookie for this task.....
    I usually put time()+3600 for it to expire one hour later ...What should I put as the expiration date such that it remembers me till the next time I log in?

    The syntax of the coookie is :
    setcookie(name, value,expire,pa th,domain,secur e)
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I want to know how this works
    they indeed use cookies with a sufficient long expiration time. although I don’t think it’s the session cookie.

    Comment

    Working...