tags:

views:

37

answers:

2

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?

+2  A: 

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

zerkms
@zerkms the "never" is uncalled for. You generally don't have to would give you a +1.
Frankie
+4  A: 

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.

zneak
thank you. this completely solves my doubt (:
hugo_leonardo