Cookie奇怪地再现的原因是什么? [英] What's the reason for cookies mysteriously reappearing?

查看:131
本文介绍了Cookie奇怪地再现的原因是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用cookie来开发一个Web应用程序来存储会话信息。我手动删除了会话cookie,因为我在另一部分的代码,我不想登录会话。但是,在几次重新加载页面之后,会话cookie再次出现,包括我之前为测试目的设置的一个cookie,然后删除并再也不使用。

I'm developing a web application using a cookie to store session information. I've manually deleted the session cookies because I'm working on another part of the code where I don't want a login session. However, after a couple reloads of the page, the session cookie mysteriously reappears, including an earlier cookie that I had only set once for testing purposes, then deleted and never used again.

我保持手动删除有问题的cookie,但仍然,当我重新加载页面一段时间后,cookies回来了。我已经仔细检查了我的代码,我是积极的我不会在任何地方设置这些cookie。我的代码现在都在一个文件,我不包括任何东西,所以没有可能性,我忽略的东西。

I keep manually deleting the cookies in question, but still, when I reload the page after a while, the cookies are back. I've double-checked my code and I am positive I'm not setting those cookies anywhere. My code is all in one file at the moment, and I'm not including anything, so there's no possibility that I'm overlooking something.

我的代码是在PHP并在我最初创建这些cookie时使用setcookie()调用。

My code is in PHP and used the setcookie() call when I initially created those cookies.

我没有在cookie上设置过期日期。
使用Safari 4 Beta和GlimmerBlocker代理。

I've not set an expiry date on the cookies. Using Safari 4 Beta and the GlimmerBlocker proxy.

这种奇怪行为的解释是什么?

What's the explanation for this weird behaviour?

推荐答案

某些浏览器cookie处理存在已知问题。

There are known problems with certain browsers cookie handling.

请参阅以下文档:
iSEC清理Cookie后

另请参阅< a / href =http://discussions.apple.com/thread.jspa?messageID=9262463 =nofollow noreferrer>关于Apple.com上关于重新出现Cookie的情况的讨论。

这篇关于Cookie奇怪地再现的原因是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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