Pratz_
2011-11-24 07:42:32 UTC
Hi,
I have been trying to manually login a user in version 2.0.3 using:
$this->Auth->login($data).
Though it successfully logins the user, and can read user data through
$this->Session->read('Auth.User.id'), the Auth Component does not
return the user data. $this->Auth->user('id') returns NULL.
Thus login through cookies [using remember me] or automatic logging in
of a newly created user does not work.
May be I am doing something wrong, please provide some leads.
Thanks,
Pratz_
I have been trying to manually login a user in version 2.0.3 using:
$this->Auth->login($data).
Though it successfully logins the user, and can read user data through
$this->Session->read('Auth.User.id'), the Auth Component does not
return the user data. $this->Auth->user('id') returns NULL.
Thus login through cookies [using remember me] or automatic logging in
of a newly created user does not work.
May be I am doing something wrong, please provide some leads.
Thanks,
Pratz_
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe-/***@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php