火狐不删除的cookie [英] Firefox not deleting cookies

查看:116
本文介绍了火狐不删除的cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cookie的过期时间。这是一个
  Unix时间戳所以在数
  自纪元秒。其他
  也就是说,你最有可能设置此
  同时间()函数加
  秒数你想让它之前,
  到期。或者你可以使用mktime()根据。
  时间()+ 60 * 60 * 24 * 30将设置cookie
  30天到期。 如果设置为0,
  或省略,cookie将在到期
  在会议结束时(
  浏览器关闭)

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

谁能解释为什么火狐无法与未指定的到期时间在退出时删除cookie吗?

Can anyone explain why is FireFox not deleting cookies with an unspecified expiry time on exit?

我在测试的的Chrome,Opera和IE 他们都在出口删除这些cookie。

I've tested in Chrome, Opera and IE they all delete those cookies at exit.

这是一个Firefox的错误?

Is this a Firefox bug?

推荐答案

退出Firefox时,你是否保存会话的标签?请参见这个帖子了解。

Are you saving your tabs session when exiting Firefox? See this post for more.

这篇关于火狐不删除的cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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