1

在win 7和win 8上,我的登录已停止在IE 10中工作。其余的浏览器表现正常。赢得7的IE 9也可以正常工作。IE 10登录问题

这是我们在网站的mvc部分所拥有的。 ajax确认返回到页面,然后重定向到仪表板页面。由于仪表板页面在登录后面,用户被重定向回登录页面。

public void SignInUser(UserInfo user) 
     { 
      FormsAuthentication.SignOut(); 
      SessionService.AbandonSession(); 
      FormsAuthentication.SetAuthCookie(user.UserId, false); 
      //here we put the user in session 
      //here we log hit 
     } 

这就是我们在Kentico CMS方面的经典asp.net。这是一个web服务请求,登录代码执行,然后确认返回到页面,然后该页面重定向到仪表板页面。同样的事情也发生在这里。用户被重定向回登录页面。

FormsAuthentication.SignOut(); 
        FormsAuthentication.SetAuthCookie(user.UserId, false); 

有没有人看过他们的网站这样的行为?

回答

1

只需安装.net framework 4.5,它将修复您在IE10 & IE11中遇到的大部分问题。 .net framework 4.5framework 4.0高度兼容,并解决了IE9, IE10 and IE11的大部分问题。您不需要将您的应用程序框架定位到4.5,在构建配置中将其保留为4.0。

0

此问题通常是由于Internet Explorer版本的缓存问题引起的。 您只需在global.asax文件中的Application_BeginRequest()中编写以下代码。

protected void Application_BeginRequest() 
{ 
    Response.Cache.SetCacheability(HttpCacheability.NoCache); 
    Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1)); 
    Response.Cache.SetNoStore(); 
}