本文介绍了HttpResponse.AppendCookie在IE中的javascript中没有返回cookie但在chrome中工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我使用HttpResponse.AppendCookie在C#中创建了一个cookie,并且在dev,beta和prod环境中工作正常,但一个测试环境除外

I have created a cookie in C# using HttpResponse.AppendCookie and works fine in dev, beta and prod environments but except one test environment

在客户端javascript中,该cookie未在IE中读取但在chrome中有效。我可以看到在IE开发者的响应标题和cookie集合中创建的cookie

In client side javascript that cookie is not being read in IE but works in chrome. i can see the cookie created in Response Headers and cookie collection in IE developer

尝试从开发环境浏览器访问测试环境  url以查看任何浏览器隐私设置问题..但没有运气

Tried accessing Test environment url from dev environment browser to see any browser privacy setting issue.. but no luck

谢谢,

Ghouse

推荐答案

http://forums.asp.net/130.aspx/1?HTML+CSS+and+ JavaScript

http://forums.asp.net/130.aspx/1?HTML+CSS+and+JavaScript

我在使用Cookie时遇到了类似的问题,其中使用JavaScript时,删除Cookie无法在IE中使用。事实证明,IE在我的开发机器上被恶意软件感染,这阻止了IE从
删除了cookie。  所以我下载了Malwarebyes完全免费试用版并在机器上运行它,这样就消除了感染。 IE之后开始正常工作。

I had a similar somewhat issues with cookies where delete of cookie didn't work in IE using JavaScript while it worked with FF and Chrome. It turned out that IE was infected by malware on my development machine at work that prevented IE from deleting the cookie.  So I downloaded Malwarebyes full free trial version and ran it on the machine, which removed the infection. And IE started working properly after that.

我只是说......

I am just saying..


这篇关于HttpResponse.AppendCookie在IE中的javascript中没有返回cookie但在chrome中工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 23:21