我在.NET中使用FormsAuthentication
一旦用户通过FormsAuthentication登录,我希望在会话中存储一些变量
我该怎么做呢?
谢谢
发布于 2014-07-05 13:17:57
FormsAuthentication类的Authenticate方法现在已过时。因此,要登录,您需要使用Membership API。请访问此处,了解如何-
MemebrShip API
访问表单身份验证数据-
FormsAuthentication Class
要了解如何在会话中保存,请参阅此链接-
HttpContext.Session
https://stackoverflow.com/questions/24583121
复制相似问题