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