Thursday, January 24, 2013

Re: Problem with Cakephp 2.0 Login

Hello Biswajit.

I think you run it on production server.

Let's try this:

public function login() {
if ($this->request->is('post')) {
$loggedIn = $this->Auth->login();
if ($loggedIn) {
//Success
} else {
//Failed
}
}
}

do this $loggedIn = $this->Auth->login(); if ($loggedIn) {...}  instead if ($this->Auth->login()) {..}

Good luck

On Thursday, October 18, 2012 4:39:18 PM UTC+7, Biswajit Ghosh wrote:
I have all Auth data of a valid user after login. So, $this->Auth->login() returns true. and I also check Auth values and Session values by Debugging. they all OK. But it show , the user (admin also) is not logged in. So it redirect me to the login page.


any one have any solutions...??? 
Please Help me....

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: