• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Session Problem with session.gc_maxlifetime = 7200

MaurizioN

New Pleskian
Hello my english is not so good, but i have a big problem.
In the PHP-settings of Plesk 12 for my domain i have this:

session.gc_maxlifetime = 7200

with phpinfo() its show me the same settings.

Now the problem:
in the folder /var/lib/php5 the sesscion are killed after i think 30-40 minutes.

I dont know which script is responsible for this trouble.

Pleas help me...
 
I resolved the problem by my self:

Hiere the way:

One thing you might not have noticed is that in the Debian/Ubuntu distro, by default PHP disables its session garbage collection mechanism

(eg. the default php.ini contains the line ;session.gc_probability = 0in Ubuntu).

Instead, it runs a cron job every half hour (see the script /etc/cron.d/php5) to purge session files in the /var/lib/php5/ directory. In most cases, this doesn't do the session cleanup job for us as session data may not be saved in files under the /var/lib/php5/ directory (like in Drupal). Thus by default PHP session garbage collection does not run in Debian/Ubuntu as many may expect. To solve this, you can modify the php.ini file by adding the line

session.gc_probability = 1

there. In Drupal, you can also change the settings.php file and add lines such as:

ini_set('session.gc_probability', 1); ini_set('session.gc_divisor', 100);

In addition, then the cron job needs to be disabled . Simply /etc/cron.d/php5 edit with the editor of your choice and comment out the last line :

- See more at: https://www.appnovation.com/blog/session-garbage-collection-php#sthash.e4zh2Lvd.dpuf
 
Back
Top