Forum Moderators: coopster

Message Too Old, No Replies

Creating a "Remember Me" with session() based authentication

         

erikcw

8:27 pm on Jul 14, 2004 (gmt 0)

10+ Year Member



Hi All,

I am trying to figure out how to create a "remember me" option so repeat users won't have to repeatedly login to me site. I am using PHP Sessions to handle authentication. I am guessing cookies are the way to go on this, but I could use some tips on how to implement it...

Thanks

jatar_k

9:07 pm on Jul 14, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



set a cookie that gives you the user id and that they requested auto login. Then when they hit the page, if the cookie exists and is set to use auto login, just log them in.