Hi
I have this problem that my sites uses alot of ajax and when a user times out they still are on my page. Now say a user walks away for 10mins(the timeout is set 10mins) now the user is timed out but still on the page.
So they could do a "save" request but now all my action methods that the ajax requests go to have an asp.net mvc authorize tag ontop of it. If a user fails this authentication then they should be redirected to the "signin page" but since it is ajax request they won't get send to the "signin page" nothing will happen.
So I was thinking maybe I could somehow pass something back(maybe if they are still authenticated) back to ajax.Complete and if it is "false" then do a redirect from javascript.
However I don't know how to do this. I don't know how to pass something back to it, how to write my controller method.