Re: Cakephp Manual Auth login returns true, but not logged in another page

2013-12-10 Thread Andrew Ponomarev
I found out that $this->Session->Auth array exists and contains correct user data, but debug(AuthComponent::user('id')) returns NULL. Why? пятница, 21 июня 2013 г., 2:37:44 UTC+4 пользователь Rahul Reddy написал: > > In my cakephp(v 2.3.4) app, I am using the code below to manually login > user

Re: Cakephp Manual Auth login returns true, but not logged in another page

2013-06-21 Thread Eric Haskins
Where do you have your auth stuff setup in appcontroller beforeFilter? if so make sure the controllers extending AppController have public function beforeFilter() { parent::beforeFilter(); } I had a similar issue with logins not persisting Eric On Thursday, June 20, 2013 6:37:44 PM U

Cakephp Manual Auth login returns true, but not logged in another page

2013-06-21 Thread Rahul Reddy
In my cakephp(v 2.3.4) app, I am using the code below to manually login users after they register, as provided in the manual . if ($this->User->save($this->request->data)) { $id = $this->U