[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 598
  • Last Modified:

What's the best way to implement the 'Remember Me' functionality in PHP?

Hi,

I've been asked to do a 'Remember Me' similar to Yahoo! where they keep you logged in for 2 weeks.  What would be the best way to implement this?

My boss doesn't want our clients to have to log in 'all the time' he wants them to point their browser to our application and have them go directly to their own private account.
0
Quincy2oneOh
Asked:
Quincy2oneOh
1 Solution
 
nplibCommented:
use cookies.

when the user authenticates, have it write a cookie with the users ID.

then have each page check for this cookie, if the cookie exists then it will give them the authentication needed.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now