浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年4月15日

摘要: ASP.Net 2.0 窗体身份验证机制-转+自己代码注释示例与更详细的说明 当某一个用户使用用户名成功登陆网站时,FormsAuthentication(窗体身份验证机制,下面统一使用英文术语) 将会创建一个authentication ticket (身份验证票),通过这个ticket就可以在网站上全程跟踪这个用户了。Form authentication ticket通常被包含... 阅读全文
posted @ 2008-04-15 23:33 浙林龙哥 阅读(1125) 评论(0) 推荐(0)

摘要: 经过几番搜索,得出结论:1)服务器是.Net2.0会给cookie加上HttpOnly属性,会使客户端无法通过IE接口读取到cookie.只能读到普通的cookie2)VS.NET2005与VC6是有区别的,m_pClientSite不同,而且要注意BSTR得到cookie对于VS.NET2005:void CActiveXCtrl::OnClick(USHORT iButton){ HRESUL... 阅读全文
posted @ 2008-04-15 23:31 浙林龙哥 阅读(1808) 评论(2) 推荐(0)

摘要: The HttpOnly attribute has been added to the Session cookie generated by ASP.NET 2.0. This value is hardcoded and cannot be changed via a setting in the application. While this is documented as ... 阅读全文
posted @ 2008-04-15 23:25 浙林龙哥 阅读(327) 评论(0) 推荐(0)