time, randomly I am logged out and then logged it again with no
apparent reason.
here is my app_controller before filter - not sure if it helps
function beforeFilter() {
if(isset($this->params['admin']) && $this->params['admin']==1 &&
$this->Session->read('Auth.User.type')==0) {
//$this->Auth->logout();
}
$this->Auth->allow('index', 'view', 'display', 'search'); //!!!
application wide
$this->Auth->fields = array(
'username' => 'email',
'password' => 'password'
);
$this->Auth->loginRedirect = array('controller' => 'discounts',
'action' => 'add');
$this->Auth->logoutRedirect =
array(Configure::read('Routing.admin') => false, 'controller' =>
'pages', 'action' => 'display', 'home');
$this->Auth->loginError = __('Login failed. Invalid username or
password.', true);
$this->Auth->authError = __('Sorry, please login first.', true);
}
On Mar 2, 8:41 am, WebRenovator <ngev...@gmail.com> wrote:
> That is very unusual. What are the conditions on which it fails? Can
> you reproduce the problem?
>
> On Mar 2, 2:03 am, JDRopp <jeffreyr...@gmail.com> wrote:
>
>
>
> > Every so often, I find that valid links or redirects from the
> > controller seems to fail.
>
> > In these cases, the user is redirected to the root (which means they
> > see my login page).
>
> > Has anyone else had this sort of problem?
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment