rt-clean-sessions(8) | Request Tracker Reference | rt-clean-sessions(8) |
rt-clean-sessions - clean old and duplicate RT sessions
rt-clean-sessions [--debug] [--older <NUM>[H|D|M|Y]] rt-clean-sessions rt-clean-sessions --debug rt-clean-sessions --older 10D rt-clean-sessions --debug --older 1M rt-clean-sessions --older 10D --skip-user
Script cleans RT sessions from DB or dir with sessions data. Leaves in DB only one session per RT user and sessions that aren't older than specified(see options).
Script is safe because data in the sessions is temporary and can be deleted.
For example: "rt-clean-sessions --older 1M" would delete all sessions that are older than 1 month.
Functionality similar to this is implemented in html/Elements/SetupSessionCookie ; however, that does not guarantee that a session will be removed from disk and database soon after the timeout expires. This script, if run from a cron job, will ensure that the timed out sessions are actually removed from disk; the Mason component just ensures that the old sessions are not reusable before the cron job gets to them.
2023-10-25 | perl v5.36.0 |