php - 火狐浏览器不删除cookies

标签 php http firefox browser cookies

The time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. In other words, you'll most likely set this with the time() function plus the number of seconds before you want it to expire. Or you might use mktime(). time()+60*60*24*30 will set the cookie to expire in 30 days. If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).

摘自:- http://www.php.net/manual/en/function.setcookie.php

谁能解释一下为什么 FireFox 在退出时不删除未指定过期时间的 cookie?

我已经在 Chrome、Opera 和 IE 中进行了测试,它们都会在退出时删除这些 Cookie。

这是 Firefox 的错误吗?

最佳答案

退出 Firefox 时是否保存选项卡 session ?请参阅this post了解更多。

关于php - 火狐浏览器不删除cookies,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4205534/

相关文章:

java - Xpath 包含一个变量

javascript - fatal error : Uncaught Error: Call to undefined function loginRelocate() Javascript

php - 在行组中显示结果并对每个组值求和

c - 暴露动态 IP 后面的本地网络服务器

php - 爬虫从url添加参数到链接

html - 在 Firefox 中,控制台 "XML Parsing Error: mismatched tag"输入错误

php - 如何使用 Blackfire 分析 PHP shell 脚本应用程序或工作程序

javascript - 通过参数将php变量传递给javascript函数,PHP,JAVASCRIPT

http - 在 Apache Cassandra 中存储和显示图像文件

firefox - 在 SCSS 中使用 @-moz-document url-prefix() 来定位 Firefox