Re: Infinite re-direct during login

2011-11-22 Thread Mamdoohi
hi
for any page that you want load without authentication, you must add this 
code in your beforeFilter() function in ony controller

$this->Auth->allow('your_page')

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Infinite re-direct during login

2011-11-19 Thread Alex
Hi,

First of all, I don't have any experience with CakePHP. I know PHP
itself but that is clearly not enough. I'm completely lost on this.

At work, I inherited this application that was developed using CakePHP
0.2.9. The application was working fine until 2 to 3 weeks ago, when
started having this problem (see below). Nobody else has access to the
application to change anything so it was not caused by code changes
(all files within the application are dated 2009). I contacted the
server's administrators to ask if any updates/upgrades/changes have
been done to the server, PHP and/or MySQL but they said none.

The problem is simple. When I get in to the site (http://
www.mysite.com/, it automatically tries to redirects to the login
page.

If I simply type http://www.mysite.com/ it returns saying that page
http://www.mysite.com/login not found.

If I type http://www.mysite.com/index.php it crashes. In Firefox, it
says "Firefox has detected that the server is redirecting the request
for this address in a way that will never complete" In Chrome it says
"The webpage http://www.mysite.com/index.php/login/login/login/login/login...
has resulted in too many redirects. (...)"

BTW, the server runs PHP 5.2.13.

Any ideas on what might have caused this problem outside code?
What other information can I give to help you help me?

Thanks,
Alex

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php