On Mar 11, 2011, at 13:13, DigitalDude wrote: > I'm going to need a function called "Keep me logged in" in my app, and > I'm not sure how to do this. You've all probably seen such a feature, > I'm assuming it means that a cookie or sth else is stored on the > user's machine that will tell the browser or the cake app that a user > is still logged in with his/her data. > > I know some users delete all cookies when they close their browsers > (as I do) and this feature will have no effect for them, but for all > other users I want this feature to work. > > Does any one of you ever coded such a feature or has any idea where to > get information on this?
Yup, sounds like a cookie to me. You'll probably store the username and some form of encrypted password in the cookie. When accessing your login page, or maybe every page of your site that differs based on the logged-in user, you'll check if logged in; if not, you'll check if this remember-me cookie exists. If it does, you'll hand that information off to the login process and log them in. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
