I think the exit(); is very important and everyone should use it unless
they know why they want code to execute afterwards. You can get nasty
bugs, especially in authorisation, e.g.

- Someone guesses the url: /articles/delete/3
- The auth component redirects the user to a login page.
- And then the controller deletes the article..

Which is why you need an exit after the redirect in checkSession().


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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