利用微软的System.Web.Security.FormsAuthentication.SetAuthCookie(userList[0].EMAIL, false);来设置cookie 的值,利用this.Context.User.Identity.IsAuthenticated 来查看用户是否登录。
对于cookie的使用
最新推荐文章于 2022-08-29 11:08:17 发布
利用微软的System.Web.Security.FormsAuthentication.SetAuthCookie(userList[0].EMAIL, false);来设置cookie 的值,利用this.Context.User.Identity.IsAuthenticated 来查看用户是否登录。