Session Cleanup Script
Last Updated: 17 Dec 2015
The session_cleanup.sh script clears stale session files. This script takes one parameter, the system root directory, and is located in the /scripts directory.
The script should be added to the crontab file to handle garbage collection periodically. As a guide, it should only need to be run once a day on average-traffic systems, but may need to be run more often on high-traffic systems.
This script is only effective when your system is configured to run the default Matrix cache. If you are using Memcache or Redis cache storage, this cleanup process is handled internally by these caching systems.