I'm not sure I understand correctly, but here goes..
When your user logs in on login.php you do something like this:
$this->Session->write('user', $my_user_data);
When you want to check for a user on a specific page, you do something
like this:
if (!$this->Session->check('user'))
$this->redirect('/users/login');
...and on the logout page you will have:
$this->Session->del('user');
Hope that helps,
dr. H.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---