Home  >  Article  >  Backend Development  >  为什么PHP里面的SESSION文件都好几个小时了,还没回收?

为什么PHP里面的SESSION文件都好几个小时了,还没回收?

WBOY
WBOYOriginal
2016-06-06 20:37:16818browse

为什么PHP里面的SESSION文件都好几个小时了,还没回收?

回复内容:

为什么PHP里面的SESSION文件都好几个小时了,还没回收?

为什么PHP里面的SESSION文件都好几个小时了,还没回收?

http://segmentfault.net/q/1010000000124010

php清除session是随机清的,你得先看下你的清除时间和清除概率都是多少,这样子的问题建议楼主还是先去官方文档上看下,不要做伸手党

概率。。。。

就像楼主所采纳的答案一样,我建议楼主问问题之前先去搜一下。

希望你了解下GC回收机制。

Statement:
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