Hi

Just upgraded to CakePHP RC1 and after some minor fixes I found that I
couldn't properly logout anymore. It caused the browser to continously
redirect to the originating url. I found that the problem lies in the
components used by my users controller:

In UsersController:
public function logout() {
  $this->Auth->logout();
  $this->redirect(array("controller"=>"users", "action"=>"login",
"plugin"=>"nedcore"));
}

But instead of redirecting to "/users/login" the browser is redirected
to "" which is the same as the original url, in my case "/users/
logout".

I have fixed this by adding the following method in all components
used by the users controller:

public function beforeRedirect(){
  return null;
}

I don't know what the bug is exactly but I figured maybe someone else
has the same 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to