ASP.NET Push Redirect on Session Timeout

前端 未结 10 1858
Happy的楠姐
Happy的楠姐 2020-11-29 21:04

I\'m looking for a tutorial, blog entry, or some help on the technique behind websites that automatically push users (ie without a postback) when the session expires. Any h

10条回答
  •  天命终不由人
    2020-11-29 21:50

    Of course you need to use [Authorize] over controller class or even Action in specific.

    [Authorize]
    public class MailController : Controller
    {
    }
    

提交回复
热议问题