摘要:
构建基于forms的验证机制过程如下: 1,设置IIS为可匿名访问和asp.net web.config中设置为form验证 2,检索数据存储验证用户,并检索角色(如果不是基于角色可不用) 3,使用FormsAuthenticationTicket创建一个Cookie并回发到客户端,并存储 角色到票中,如: FormsAuthentication.SetAuthCookie(Username,... 阅读全文
摘要:
http://www.codeproject.com/aspnet/formsroleauth.aspIntroductionForms Authentication in ASP.NET can be a powerful feature. With very little code and effort, you can have a simple authentication system ... 阅读全文