Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Strange redirect loop
  • Hi,

    if a user has done something very bad; I will kick him out of the system and when he logs in the next time, I want to forward him to a special page: /game/backend/exception

    I now have the problem, that this redirection is getting somehow into a loop. The action I want to redirect is a sub controller of the controller I do the forwarding.

    Here is my code:

    Hope, someone can help me.

    Thanks Kay
  • I would say that your route

        'game'            => 'game/index', // Game section

    would match /game/backend/exception too...
  • Hi Harro,

    even if I disable the route game I'll get the same error.

    How do I need to config the routing, so that both would work?

    Thanks
    Kay
  • Your code is filled with redirects, so some debugging would probably clear it up quickest. Add some logger() calls, and check the logfile to see what route it takes through your code...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion