lea*_*... 1 asp.net authentication asp.net-mvc-2 internet-explorer-10
在win 7和win 8中,我的登录仅停止在IE 10中工作.其余的浏览器表现正常.赢得7的IE 9也正常工作.
这就是我们在网站的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
}
Run Code Online (Sandbox Code Playgroud)
这就是我们在Kentico CMS方面的经典asp.net.这是一个Web服务请求,执行登录代码,然后确认返回到页面,该页面又重定向到仪表板页面.这里也发生了同样的事情.用户被重定向回登录页面.
FormsAuthentication.SignOut();
FormsAuthentication.SetAuthCookie(user.UserId, false);
Run Code Online (Sandbox Code Playgroud)
有没有人在他们的网站上看到过这样的行为?
| 归档时间: |
|
| 查看次数: |
6914 次 |
| 最近记录: |