I am new to PHP and Cake.  I am baking my first website with Cake and
have implemented authentication as per the manual at
http://manual.cakephp.org/chapter/19 .

I added the call to CheckSession() to each of the methods in my
controller that require authentication, but noticed that even if the
person is not logged in, the method executes.  Upon stepping through
the code, I noticed that the this->redirect() which forwards them to
the login page falls through and the code after resumes executing.

Is this as you would expect?  I was expecting it would behave like an
ASP Response.Redirect() which terminates the current script.

If I wish to abandon all further method execution, what do I need to
call or execute following this->redirect()?

Many thanks!
Jim Bernatowicz
http://www.photips.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to