rt-clean-sessions(8)
β¨ rt-clean-sessions β¨
okay bestie, so this is a page from the Request Tracker Reference β yes the rt-clean-sessions(8) girlies know β and it's literally the glow-up your RT sessions have been begging for π
πΈ NAME πΈ
rt-clean-sessions β clean old and duplicate RT sessions π§Ήβ¨
π SYNOPSIS π
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
like... look at all those options. main character energy fr fr π
π DESCRIPTION π
okay so here's the tea π΅ β this script cleans RT sessions from the DB or from a dir with sessions data. it leaves in the DB only one session per RT user, plus any sessions that aren't older than what you specified (see the options below, bestie).
and the best part? the script is safe π«Ά because data in the sessions is temporary and can be deleted. no cap. it's giving "spring cleaning but make it harmless" πΈ
β¨ OPTIONS β¨
--olderβ date interval in the<NUM>[<unit>]format. the default unit isD(days), andH(hour),M(month) andY(year) are also supported. for example:rt-clean-sessions --older 1Mwould delete all sessions that are older than 1 month. so iconic of it π--skip-userβ by default only one session per user is left in the DB, so users that have sessions on multiple computers or in different browsers will be logged out π. use this option to avoid this. protect the multi-device girlies π«Ά--debugβ turn on debug output πβ¨
π NOTES π
so there's functionality similar to this implemented in html/Elements/SetupSessionCookie β however (and this is the important part, don't skip it π), 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. so like... they're a duo, not a replacement, iykyk π§
ngl the cron job is the one doing the real work here. respect. π
that's the whole page, bestie! go forth and clean those sessions π
this has been perl v5.38.2, dated 2023-10-29, and yes it's the rt-clean-sessions(8) page β slay, bye! π
π¦ where this page comes from
- ubuntu noble: request-tracker4 4.4.7+dfsg-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms