Internet Explorer将发布请求转换为get请求

时间:2016-08-03 07:33:40

标签: symfony internet-explorer

我遇到了一个有趣的现象,即Internet Explorer将后登录请求转换为get请求,从而丢失凭据并重定向到登录页面而不进行身份验证。

其他浏览器的功能正确。我用firefox,chrome,vivaldi和safari成功测试了它。

每个this documentation完成的loginAction方法: https://gist.github.com/rawroland/9929df558e66ed104c186fd309755069

登录页面的树枝代码:https://gist.github.com/rawroland/c53af4378dbe1547f862683b55d3bc21

生成的登录页面的html代码:https://gist.github.com/rawroland/f3cfdfc74a728dc648189e3931d8f827

所有请求 All requests 发布并获取请求 Post and get 第二篇 Second post

1 个答案:

答案 0 :(得分:0)

我终于在同事的帮助下发现并解决了这个问题。我们的测试系统上的服务器时间是一个非常无害的问题,落后了2个小时。这导致cookie在Internet Explorer中设置过去的过期时间,导致登录始终失败。令人惊讶的问题是,Cookie过期仅在Internet Explorer中关闭,其他所有浏览器都有正确的过期日期。

我通过将服务器时间与欧洲网络时间服务器同步来修复此问题:Synchronizing server times with NTP

相关问题