过期时间为“会话结束”的Cookie何时到期?
16lz
2021-01-22
There is a session cookie with expiration time which says 'At end of session'. When exactly does it expire or will it be alive forever?
会话cookie的过期时间为“会话结束时”。什么时候它到期还是永远活着?
4 个解决方案
#1
24
When you use setcookie
, you can either set the expiration time to 0
or simply omit the parametre - the cookie will then expire at the end of session (ie, when you close the browser).
当您使用setcookie时,您可以将到期时间设置为0或者只是省略参数 - 然后cookie将在会话结束时(即,当您关闭浏览器时)到期。
更多相关文章
- MYSQL5.5和5.6参数的差异
- mysql主从同步报slave_sql_running:no的解决方案
- win7下Django的MySql安装,问题解决方案
- mysql 事物没提交导致事物一直运行解决方案
- 无法连接远程MySQL数据库的解决方案
- [征集] MySQL交叉表解决方案及散分
- PHP MYSQL 出现中文乱码的解决方案
- Amoeba for MySQL---分布式数据库Proxy解决方案
- 存储过程,参数数量不正确bug?