Tuesday, April 24, 2012

Re: Too many redirects when login-user access the control they don't allow to go

from the look at your code I can see nothing wrong so far
try to debug redirect() and find out what it tries to redirect to - e.g. using $this->log() 

maybe you are using an early cake version where you would get redirected to the homepage (/) instead of your loginRedirect in such a case.
if this url then isnt public or redirecfts you back to the referer you might run into such an endlessloop.
hard to say from the above code pieces


Am Dienstag, 24. April 2012 23:20:06 UTC+2 schrieb Budd:
What is the best way to do it?

I am just making a simple website with login.

People need to login to see the data and they only can see the login
page if they are not login.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate