开发者

must i handle session garbage?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜