Phpsession is not automatically destroyed. how can this problem be solved?

Source: Internet
Author: User
Phpsession does not automatically destroy the server environment: win2003 & nbsp; + & nbsp; IIS & nbsp; + & nbsp; php5.3php & nbsp; session & nbsp; The configuration is as follows: DirectiveLocal & nbsp; valueMaster php session is not automatically destroyed

Server environment: win2003 + IIS + php5.3

The php session configuration is as follows:

DirectiveLocal ValueMaster Value
Session. auto_startOffOff
Session. bug_compat_42OffOff
Session. bug_compat_warnOffOff
Session. cache_expire180180
Session. cache_limiternocachenocache
Session. cookie_domainno valueno value
Session. cookie_httponlyOffOff
Session. cookie_lifetime00
Session. cookie_path //
Session. cookie_secureOffOff
Session. entropy_fileno valueno value
Session. entropy_length00
Session. gc_divisor100100
Session. gc_maxlifetime14401440
Session. gc_probability11
Session. hash_bits_per_character55
Session. hash_function00
Session. namePHPSESSIDPHPSESSID
Session. referer_checkno valueno value
Session. save_handlerfilesfiles
Session. save_pathD: \ phptempD: \ phptemp
Session. serialize_handlerphpphp
Session. use_cookiesOnOn
Session. use_only_cookiesOnOn
Session. use_trans_sid00

The problem now is that the user can stay online after login, and the session files under the temporary directory cannot be automatically destroyed. the more the accumulation, the server will be dragged down.
The strange thing is that the same configuration is no problem on another server. it should be a problem in system settings, and it does not involve program development. Can someone with O & M experience give me some advice?


------ Solution --------------------
Let's take a look at the answers from experts.
------ Solution --------------------
You changed session. save_path. can garbage collection be performed?
My experience is that session. save_path can be recycled only when it is a temporary directory of the operating system (c: \ windows \ temp ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.