FormsAuthentication 登录兼容 IE11 保存cookie

现象:使用FormsAuthentication进行登录验证,在IE11客户端无法保存cookie

解决方法:在web.config中的forms中增加cookieless="UseCookies"属性。

原文地址:http://www.wlm.so/Article/Detail/lmb48dogzil3b00000

<authentication mode="Forms">
  <forms cookieless="UseCookies" loginUrl="~/Login" domain="wlm.so"/>
</authentication>

  

 

posted @ 2014-08-15 11:20  wlm2014  阅读(349)  评论(0编辑  收藏  举报