On Jan 3, 2008 7:06 AM, kgrimm <[EMAIL PROTECTED]> wrote: > > I'm checking this in AppController each time a controller is > called. The problem is, that the login page is being rendered into the > old layout.
I'm calling exit() after the redirect action just like it > should be. This problem only occurs, if a controller is called via > AJAX. Yes, that's the way it's supposed to work. You're requesting something (content, login page, error page) and then painting it somewhere. I don't know if there are any way to check for the session expiration using the ajax helper, but you should have some code on the client-side (javascript) to check if session is alive. If not just do a redirect to the login url. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
