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/