摘要: 转:http://www.haogongju.net/art/1155616ASP.Net 2.0 窗体身份验证机制-转+自己代码注释示例与更详细的说明atop[itop] = "gtop" + itop.toString();itop++;当某一个用户使用用户名成功登陆网站时,FormsAuthentication(窗体身份验证机制,下面统一使用英文术语) 将会创建一个authentication ticket (身份验证票),通过这个ticket就可以在网站上全程跟踪这个用户了。Form authentication ticket通常被包含在一个Cookie里面,但是A 阅读全文
posted @ 2012-11-21 17:22 jackljf 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.kaisir.com/2011/03/csharp-formsauthentication-usage.htmlusing System;using System.Web;using System.Web.Security; namespace AuthTest{ public class Authentication { /// /// 设置用户登陆成功凭据(Cookie存储) /// /// 用户名 /// 密码 /// 权限 public stati... 阅读全文
posted @ 2012-11-21 17:11 jackljf 阅读(637) 评论(0) 推荐(0) 编辑