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
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 ).
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