命名空間System.Web.Security
驗證FormsAuthentication.RedirectFromLoginPage(username, true)
登出FormsAuthentication.SignOut()
查證是否驗證User.Identity.IsAuthenticated
ASP.NET MVC (在 Controller 的 Action 前加 Authorize 屬性)[Authorize]
e.g.[Authorize]<br>public ActionResult Index() { return View(); }
相關資料: