I just wrote my own using sessions.
Create a users table with username and password.
When they submit the form to the Users::login function, check to see if
the username and password match, and if so, log them in:
$this->Session->write('loggedIn', true);
$this->Session->write('user_id', $user_id);

Then redirect them to wherever you want them to go.
When you're ready to log them out, just reverse the process
$this->Session->write('loggedOut', false);
$this->Session->write('user_id', false);

Or something like that.


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

Reply via email to