I have an authentication/authorization plugin that stores a user's id
in the session when they login.  So my plugin's UsersController does
this in its login action:

$this->Session->write('User.id', $user['User']['id']);

In my main app I'd like to access this stored id.  However in any of my
main app's controllers, $this->Session->read('User.id'); returns null.
Only in my plugin's controllers does $this->Session->read('User.id');
return the logged in user's id.

Does anyone know a) why plugins seem to use separate sessions, and b)
how I can access the plugin's session from my main app controllers?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to