首页 > 学院 > 开发设计 > 正文

FormsAuthentication登录兼容IE11保存cookie

2019-11-14 16:29:59
字体:
来源:转载
供稿:网友

现象:使用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>

  

 


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表