Humm quite normal if your "news/index" requires to be logged in ..If this is the case, you redirect to an action that needs login, and you are not (after logout) ..then login action is invoked.
On Jul 7, 7:15 pm, "Arak Tai'Roth" <[EMAIL PROTECTED]> wrote: > I am using Auth and ACL for my website and am having a problem with > the logout redirect of Auth. It is not taking the user to the page I > want it to, and is instead taking them to the login screen again. Just > wondering if anyone can spot the problem. > > Here is some of the code I think is important, if you need more, > please just let me know. > > Users Controller: > > function logout() > { > $this->redirect($this->Auth->logout()); > } > > app_controller > > function beforeFilter() > { > $this->Auth->authorize='crud'; > $this->Auth->loginAction = array('controller' => > 'users', 'action' > => 'login'); > $this->Auth->loginError = 'Invalid username / > password combination. > Please try again.'; > $this->Auth->loginRedirect = array('controller' => > 'news', 'action' > => 'index'); > $this->Auth->logoutRedirect = array('controller' => > 'news', > 'action' => 'index'); > } > > And yes, I know the login and logout are both pointing to the same > place, just ignore that unless that is what could be causing the > problem. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---