views:

25

answers:

0

When a users login token has expired (ie. they have been logged out) on a page that has AJAX enabled content, if they select a AJAX link on the page it will appear to complete succesfully. However this is not the case. The content that was returned to the page is the Login Redirection. Is there any way to have the AJAX call redirect to the login page if the user is logged out? From what I can see the obvious way would be to add code to the Controller which would pass an error to the AJAX caller so it would handle the users state however because this is forms authentication the authentication happens prior to the controller being called.

Any thoughts on how to handle this? Thanks in advance!