when the user closes his browser, usually 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?
when the user closes his browser, usually 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?
Nope. You should never take care of it - it is php internals' 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.