【发布时间】:2012-10-23 19:23:03
【问题描述】:
我需要使用 FormsAuthentication 来验证使用 ajax 的用户的登录,我知道我不能使用 FormsAuthentication.RedirectFromLoginPage("UserName",false) 因为使用 ajax 时没有重定向。
我可以使用什么来设置此用户已授权。
尝试使用:
FormsAuthentication.SetAuthCookie("UserName", false);
但是这里有 cookie,我不想使用 cookie。
谢谢
【问题讨论】:
标签: asp.net jquery forms-authentication