We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
PHP removing files sessions
PHP removing files sessions
About removing files in the folder sessions? How PHP does this automatically for each site?
I use Ubuntu but here not work.
php.ini:
session.gc_divisor 1000
session.gc_maxlifetime 1440
session.gc_probability 1
I use Ubuntu but here not work.
php.ini:
session.gc_divisor 1000
session.gc_maxlifetime 1440
session.gc_probability 1
Re: PHP removing files sessions
I don't really trust php GC anymore (from php 5.4 and later) and clean this mess with my own hands, so you do too with small bash script in cron:
Code: Select all
nice find /home/*/tmp -type f -name 'sess_*' -ctime +5 -delete