我的 cookie 在 asp.net 页面中消失

发布于 2024-10-04 07:49:57 字数 285 浏览 0 评论 0原文

我正在解决刷新页面后 cookie 消失的问题。我对这个页面完全陌生,不知道客户端/服务器端的任何代码,所以我决定通过 fiddler 跟踪 http。

这是一个会话 cookie,没有指定过期日期,域路径也没有。我在刷新过程中检查了所有http请求,在响应头中没有发现任何与“Set-Cookie”相关的内容,但cookie就消失了。

此问题发生在 IE、FF、Chrome 中。我不认为这是与浏览器相关的问题。

由于我不拥有服务器端代码,因此我无法通过 cookie 名称搜索代码。知道可能是什么问题吗?

I'm working on an issue that a cookie disappears after refreshing the page. I'm totally new to this page and doesn't know any code in either client/server side, so I decide to trace the http by fiddler.

This is a session cookie which has no expire date assigned, neither does the domain path. I checked all http request during the refreshing, found nothing related to "Set-Cookie" in the response header, but the cookie just disappeared.

This issue happened in IE, FF, Chrome. I don't think it's a browser related issue.

As I don't own the server side code, I can't search the code by the cookie name. Any idea what can possible be the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无悔心 2024-10-11 07:49:57

尝试检查您的页面源代码和 JS 文件,cookie 可能会被 Javascript 删除。

Try checking your page source and JS file, cookie could potentially be deleted by Javascript.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文