Hello,
I have some issues with two CakePHP (current stable version)
applications regarding Auth.
When a user is logged in and loads multiple pages simultaneously, he
gets logged out. This happens for example when he follows a hyperlink
while the page is still loading or if he hits "F5" twice.
Furthermore, the user receives the message: "You are not authorized to
access that location."
This is the code from my App_Controller:
function beforeFilter(){
Configure::load('settings'); // My application configuration
$this->Auth->loginAction = array('controller' => 'users',
'action'
=> 'login');
$this->Auth->autoRedirect = false;
$this->Auth->loginError = Configure::read('Auth.LoginError');
$this->Auth->authError = Configure::read('Auth.AuthError');
$this->Auth->authorize = 'controller';
}
function isAuthorized() {
return true; // For testing!
}
It seems that the app cannot process multiple requests in the same
session at the same time. But it should, to my view.. :-)
Does somebody of you have a clue, why this could happen or where to
start searching?
Thanks and greetings from Kiel/Germany,
Andreas
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---