This is a strange behaviour and I'm not sure if it's my application or
a bug in cake.
If I click a link to load a page and then click another link for a
different page on a different model then before the page has changed
to the initially requested page the application instead redirects me
to the login screen.
My application is quite large now with about 25 tables so a pageload
can take a second which is how I've noticed this quirk.
My auth is set up in app_controller.php in the cake/libs/contollers/
directory as follows:
$this->Auth->userModel = 'User';
$this->Auth->ajaxLogin = 'ajaxLogin';
$this->Auth->allow(array('display'));
$this->Auth->userScope = array('User.active' => 'y');
$this->Auth->fields = array('username' => 'email', 'password' =>
'password');
$this->Auth->autoRedirect = false;
$this->Auth->logoutAction =
array(Configure::read('Routing.admin')
=> false, 'controller' => 'users', 'action' => 'logout');
$this->Auth->logoutRedirect =
array(Configure::read('Routing.admin')
=> false, 'controller' => '/', 'action' => 'index');
If anyone has experienced something similar or has any suggestions I'd
love to hear.
I'm using cake version 1.2.7.
Thanks.
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