开发者

must i handle session garbage?

开发者 https://www.devze.com 2023-01-13 18:32 出处:网络
when the user closes his browser, us开发者_运维问答ually he losts the cookie that marks the session. but the file in the server is not deleted and remains there, useless.

when the user closes his browser, us开发者_运维问答ually he losts the cookie that marks the session. but the file in the server is not deleted and remains there, useless.

do i have to handle it? or it's a server's business?


It's a server's business. PHP has a "garbage collector" mechanism for them. See the session.gc_probability, session.gc_divisor and session.gc_maxlifetime configuration options.


Nope. You should never take care of it - it is php internals' business.

0

精彩评论

暂无评论...
验证码 换一张
取 消