• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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