If you're using Auth you don't need to store the User ID in the
session. Just grab it with $this->Auth->user('id') whenever you need
it.

On Mon, Jun 1, 2009 at 9:55 AM, cake_baker <[email protected]> wrote:
>
> How you write user.id  a Session with auth i did this but dosent work
>
> Login
>
>  !$user = $this->Auth->user();
>  $this->Session->write('User.id', $user['User']['id']);
>
>
>
> logout
>  $this->Session->del('User.id');
>
>
>
> Thank you
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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