> how to make persistent login with Cake's session component? Or should
> I manually create some cookies for this?
"persistent logins" are those "remember me" check-boxes on some forums?

if so, not the session is permanent or persistent, but the user will be  
automatically logged-in using the "data" stored in a cookie. thus the  
cookie is permanent/persistent.
one way could be to generate a unique hash for each user that you'll store  
in the cookie and the user-db. so you dont need to store a  
username/password-combination in a cookie.

you could do something like this in the beforeFilter:
if session.user-not-logged-in
   check for cookie
     try to login using the cookie-data
     if fails redirect to login or deny or continue/"login" as  
anonymous-user
     otherwise write session.user-logged-in
check if logged-in user is allowed for the controller/action/view as usual







--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to