It can't be done from the server if it's an asynchronous request.
You'll have to do it with javascript. Perhaps you could send back a
particular response if you wish to redirect and have your JS callback
look for it. If it's found, use document.location = ...



On Sun, Jun 7, 2009 at 9:34 AM, MarcS<[email protected]> wrote:
>
> Hi everyone.
>
> I have a site that is farely heavy on AJAX.
> Sometimes it happens that the Session has expired and the user needs
> to log in again.
> Is there a way that I can detect that and send the surfer to the log
> in page instead of the login page loading inside the dom container?
> >
>

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

Reply via email to