To change the frequency in which file-based sessions get garbage collected in php, one way is to change the php.ini file:

session.gc_maxlifetime = 604800

This will mark a session as garbage after one week without being used.

#sysadmin