2012年5月4日
摘要: Reflector 查看 System.Web.dll 中 HttpRequest.cs 的代码:public bool IsAuthenticated{ get { return (((this._context.User != null) && (this._context.User.Identity != null)) && this._context.User.Identity.IsAuthenticated); }} 所以说这两者应该是没区别的,不过因为加了一些判断的因素,看来使用 Request.IsAuthenticated 会保险一点。 阅读全文
posted @ 2012-05-04 12:13 rulee 阅读(2340) 评论(0) 推荐(1) 编辑