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.
精彩评论