I have a strange problem.
I am using CakePHP 1.3.6, and for IE 6-7-8 it does not allow me to log in. I use the correct credentials. tested them with a journal entry.
There is no authentication error. (If I use the wrong credentials then it shows an auth error, but for the correct credentials it shows nothing :()
I tested the whole possibility with the auth component, logging the logs in the error.log file.
I checked the Auth-> user method. It fills the Auth session, but even if it does not redirect me to the right place. I also checked authLoginurl: it is also correct in logs.
I checked the following options,
1) Changed some settings from Core.php
- Session.checkAgent is set to false - Security Level. - Session.start is set to false
2) the disableCache () function is used to log in to avoid caching login data in the browser.
3) After logging out, I destroyed the session.
Here is the code
Application Controller in beforeFilter:
$ this-> Auth-> loginAction = array ('controller' => 'users', 'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'myaccount'); $this->Auth->userScope = array('User.is_active' => '1', 'User.is_verified' => '1');
User controller beforeFilter ():
function beforeFilter () {
parent::beforeFilter(); $this->Auth->allow(allowed_actions);
}
Thnaks, Vijay