Hi there. I've been looking for a way to detect on the client side that the ajax request he performed was not successful because the user session has expired. My problem is not related with security level (seen too many people with this one..).
I've red this blog post: - http://deadlytechnology.com/php/ajax-session-expire-bug/ that explains that this was a bug, and also the supposed correction: - http://cakephp.lighthouseapp.com/projects/42648/tickets/658-session-timeout-auth-component-403-status-code-being-dropped-when-request-via-ajax I've also looked into the code, and it seems that if the user performs an ajax request without a valid session, all i can get is a 403 server error on the client side. Is this actually the only way to check if i should redirect the user to the login page? I know i can also override the redirect method to handle this better, but i think that it makes sense that the framework can handle this. Thanks is advance for any response -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
