On Thu, Oct 28, 2010 at 5:57 PM, Jeremy Burns | Class Outfit
<[email protected]> wrote:
> I've tried a few ways of doing that and the only success I had was adding
> extra keys to the Auth->user array after the user logs in, which means it'll
> be available thereafter. I'd be interested to know if there is a better way.
Same thing I do. Put the code in your login():
$this->Session->write('Auth.User.foo', 'bar');
To read:
$this->Auth->user('foo')
or, from View:
$session->read('Auth.User.foo') (1.2.x)
$this->Session->read('Auth.User.foo') (1.3.x)
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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