Session files problem


I have a problem with session files, i have about 1 milion files in /home/user/tmp for about 15 domains.
I guess there is a script that is erasing old files time to time, but i guess that would be a good ideea to store the files per domain, like /home/user/tmp/

Is that possible?

Thank you.

Maybe you can create a different user for each domain. Such as:

The other thing that you can do is purge those files. Have a cron that deletes files older than x days.

1 Like

There is already a cron that deletes the files after 7 days…

Can you tell me the location for that script? I want to delete the session files after 1 day. Thank you.

1 Like