session问题

WBOY
Release: 2016-06-23 13:53:02
Original
1008 people have browsed it

我把session保存在硬盘。session_save_path();

但是现在有一个问题,当session过期时。刷新网页后。依然显示session存在。

请问怎么办


回复讨论(解决方案)

如果 session 临时文件没有存放在操作系统的临时文件目录中,那么多半是不会被删除的
windows 肯定不会,Linux 要看是哪个分支

另外需注意:
1、可删除而被删除的概率默认只用千分之一
2、是否过期是以最后一次访问为基点的

不能因为用户只不过和女朋友打个电话,就得重头再来吧。
这也太不友好了

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!