• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Php session files problem - more than 4Gb session files

MakMakMak

New Pleskian
Hello,
I have 2 servers with CentOS 6.5 and with PHP 5.3.3 and with last version of Plesk in both. I have big problem with session files from path /var/lib/php/session
I have more than 4Gb in that folder and all files are session files which aren't deleted. How I to solve problem with this sessions which do not auto delete?
php.ini is default. I set default 30 minutes to be idle sessions in Server / Plesk settings page.

Can you reccomend me some script or code to run some time to delete expired sessions?

How to make that file to work with cron?

I find this code
http://budiwijaya.net/tips-to-delete-sessions-file-of-php-in-centos-5-5.html
but I don't know how it to work into my server (or do it can to work into my server).

Thank you
 
Thank you for reply.

I run it but only wait several minutes and nothing happened, all files are still there. No deleted files.
 
Back
Top