jquery $.ajax with auth expired: gets the login screen in popup RRS feed

  • Question

  • Im using MVC framwork and [Authorize] attribute for every control to check the security. The problem is that if the auth cookie has expired and the user clicks on a link that should open a popup using $.ajax 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 ?

    • Moved by Fafafaalex Tuesday, June 29, 2010 11:14 AM (From:Visual C# General)
    Wednesday, June 23, 2010 12:42 PM


  • Hello,

    This should have been asked in the ASP.Net MVC forum on forums.asp.net.


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    • Proposed as answer by Just Karl Thursday, January 30, 2014 6:57 PM
    • Marked as answer by Just Karl Tuesday, February 11, 2014 11:18 PM
    Tuesday, January 28, 2014 9:07 PM