Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Remember Me - Cookie
09-25-2003, 09:17 PM #1
- Join Date
- Sep 2003
- Thanked 0 Times in 0 Posts
Remember Me - Cookie
I'm trying to do the usual "Remember Me" checkbox on my login page.
I have found bit and pieces at different places but I'm still stuck. I either have a problem to read the cookie, or detecting if there is one, etc.
Anybody has a sample code doing that?
Thanks in advance,
09-25-2003, 09:33 PM #2
// check if cookie exists
// login user
// show html form
// process login form
// usual form validation etc here
// DON'T PRINT ANYTHING OUT TO THE PAGE BEFORE YOU SET A COOKIE, OR YOU'LL GET ERRORS.
// cookie set, get value of cookie by echoing $_COOKIE['rememberme']
Last edited by Nightfire; 09-25-2003 at 09:54 PM.