the problem is that if the auth cookie has expired and the user clicks on a link that should open a popup using $.get than i get the login screen in the popup (same masterpage in another masterpage) instead of redirecting the whole page to the login screen
anybody knows how to fix this ?
ASP.NET MVC has the following property on it’s
Requestobject:This will (amongst other things) checks for the existence of the
X-Requested-Withheader, and a value ofXMLHTTPRequest. Checking this, along with checking for IsAuthenticated would allow you to modify your response appropriately.What you do then is up to you: