Well..thanks a lot then :)
On 29 Січ, 23:32, Miles J <[email protected]> wrote:
> No that's pretty much the only way to refresh the Auth user session.
> Any variants of updating the session manually works.
>
> On Jan 29, 11:18 am, Mee <[email protected]> wrote:
>
> > Hello,
>
> > As far as I see Auth->User is cached in session, but when I change
> > some fields in user's record I need to update cache. I do it in a
> > wierd way:
>
> > $user =
> > $this->User->findById($this->Auth->user('id'));
> >
> > $this->Session->write($this->Auth->sessionKey, $user['User']);
>
> > Is there a way to do it right?
>
> > thanks in advance,
> > mee
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---