Hello,
I wonder if there’s a ready-way to auto remove expired session files?
timeout
won’t delete the session file and will just make it expired, and the file won’t be deleted from app/tmp/sessions. In a long term it can take a lot of space in the server if you have traffic.
Configure::write('Session', array(
'defaults' => 'cake',
'timeout' => 1, //36000
));
Otherwise I’ll probably do a script or a php function that checks regularly the session files to remove old ones based on their modification date.
Regards