On Wed, May 21, 2008 at 5:00 PM, theandystratton
<[EMAIL PROTECTED]> wrote:
>
> Just wondering if the array of data return from $this->Auth->user() is
> cached (either on disk or session) by default?
>
> When creating an admin screen to update some fields the user model
> returned from $this->Auth->user() was not updated.
You'll need to update whatever data is held in the session. It's just
an array of data, not a reference to an object or something like that.
After you update the model do something like:
$this->Session->write('User', $user['User']);
> If so, is there a quick way to refresh? My current fix:
>
> $user = $this->User->findByUserId( $this->Auth->user('user_id') );
>
> But that seems a bit clunky... ?
>
I don't understand what you're trying to do here. Are you trying to
refresh the $user variable or the data in the session?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---