ASP.Net

Angular - redirect to login after user session expires (including ajax/background processes)

Environment: .Net MVC with Angular v 1Issue: When the user redirects in Angular app or performs any kind of ajax request (searching inside a search box, clicking any button, etc. any event that triggers an Angular $http request to the backend), the user is not aware that they have been logged off from the server. They may redirect to another Angular "page" and search for info and get "weird" server errors.Goal: Provide the user an alert and redirect to the login page. Note, this also needs to support ......

Operation is not valid due to the current state of the object.

Issue:System.InvalidOperati... is not valid due to the current state of the object. System.InvalidOperationExce... Operation is not valid due to the current state of the object. at System.Web.HttpRequest.Fill... at System.Web.HttpRequest.get_... at Rhino.Commons.LongConversat... privateConversation) at Rhino.Commons.LongConversat... at Rhino.Commons.HttpModules.U... ......