饼干只设置在IE和Firefox的不是/镀铬 [英] Cookie only sets in IE and not firefox/chrome

查看:122
本文介绍了饼干只设置在IE和Firefox的不是/镀铬的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET 2.0 Web应用程序。饼干2008服务器在Windows上的所有浏览器正常工作了好几年。

I have an ASP.NET 2.0 web application. Cookies worked fine on all browsers on windows server 2008 for several years.

我们升级到一个新的服务器与Windows Server 2012(IIS8),在测试过程中的cookies没有被在Firefox设置,所以我们不能登陆第一天(不知道铬)。第二天,没有任何的变化,它似乎所有的工作确定。

We upgraded to a new server with windows server 2012(IIS8), the first day during testing cookies were not being set in firefox so we could not login(not sure about chrome). Next day, with no changes, it seemed to all work OK.

一晃再过一个月左右的时间,Firefox和Chrome不会将Cookie(在Chrome开发工具和萤火虫看),但它仍然在IE工作,我可以看到在IE开发工具Cookie集。

Fast forward another month or so, firefox and chrome will not set the cookies (looking in chrome dev tools and firebug) but its still working in IE and I can see the cookie set in IE dev tools.

Cookie的值被设置虽然

Cookie values are being set though

HttpContext.Current.Response.Cookies [] []

HttpContext.Current.Response.Cookies[][]

没有人有任何线索,这可能是为什么,或者我应该开始尝试诊断这个问题?

Does anyone have any clue why this might be, or where I should start trying to diagnose this issue?

推荐答案

我们有我们开发服务器,并花了几个小时就同一问题,找到根本原因吧。登录将在IE浏览器而不是在FF和铬工作。
我们终于拿到了这个问题。不知道我们的解决方案将如何相关的是别人,但我想我会张贴在这里,它可以帮助别人了一天。

We had the same issue on our dev server and spent hours to find the root cause for it. Login would work on IE but not on FF and Chrome. We finally got the problem. Not sure how relevant our solution will be for others, but I thought I will post it here and it may help out someone someday.

在我们的例子中,尝试了很多事情之后,我们终于重新启动服务器,然后才知道,SSL证书已经过期,这是什么导致了问题。禁用SSL完全再次进行登录的工作。我们更新了SSL和启用了SSL和现在一切都很好。

In our case, after trying a lot of things we finally restarted the server and then came to know that the SSL certificate has expired and that is what was causing the issue. Disabling SSL completely made login work again. We renewed the SSL and enabled SSL and everything is fine now.

这篇关于饼干只设置在IE和Firefox的不是/镀铬的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆