• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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