By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,460 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Keep user logged in with cookie

P: n/a
I have a site that I want to keep the user logged in after they leave
the site if they check the "Remember Me" box. How do I go about doing
this? Lengthen the session length? Any help would be great.

Thanks,
Nate Baxley
Feb 6 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Feb 6, 7:51 pm, Nate.Bax...@gmail.com wrote:
I have a site that I want to keep the user logged in after they leave
the site if they check the "Remember Me" box. How do I go about doing
this? Lengthen the session length? Any help would be great.

Thanks,
Nate Baxley
The standard approach is to use a persistent cookie, for example by
setting it to expire in a year's time, then use the token in the
cookie to log the user back in when he comes back.
Feb 7 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.