Coders4Africa

Wednesday, Apr 23rd

Last update07:11:32 AM GMT

Infinite redirect loop when using CakePHP

    Rate this item
    (0 votes)
    Tweet

    You will sometimes run into this issue when using CakePHP, I did  a few times, and randomly or so it seemed and the reason is in my case, and I want to bet in most cases, is that you are using the Auth Component, and added a new action to your controller, and simply forgot to add it to the allowed functions in the Auth Component. Make sure you add the action name that you want to be made available to anyone to the Auth.allow() call in your beforeFilter() function body in the controller where the action is defined.

    Follow us

    Contact us

    • Add: 100 Technology Way Suite 335,
      Mount Laurel, NJ 08054 USA
    • Tel: (888) 418-1146
    You are here: Blog Infinite redirect loop when using CakePHP