1RT-CLEAN-SESSIONS(1)  User Contributed Perl Documentation RT-CLEAN-SESSIONS(1)
2
3
4

NAME

6       rt-clean-sessions - clean old and duplicate RT sessions
7

SYNOPSIS

9            rt-clean-sessions [--debug] [--older <NUM>[H|D|M|Y]]
10
11            rt-clean-sessions
12            rt-clean-sessions --debug
13            rt-clean-sessions --older 10D
14            rt-clean-sessions --debug --older 1M
15            rt-clean-sessions --older 10D --skip-user
16

DESCRIPTION

18       Script cleans RT sessions from DB or dir with sessions data.  Leaves in
19       DB only one session per RT user and sessions that aren't older than
20       specified(see options).
21
22       Script is safe because data in the sessions is temporary and can be
23       deleted.
24

OPTIONS

26       older
27           Date interval in the "<NUM>[<unit>]" format. Default unit is
28           D(ays), H(our), M(onth) and Y(ear) are also supported.
29
30           For example: "rt-clean-sessions --older 1M" would delete all
31           sessions that are older than 1 month.
32
33       skip-user
34           By default only one session per user left in the DB, so users that
35           have sessions on multiple computers or in different browsers will
36           be logged out.  Use this option to avoid this.
37
38       debug
39           Turn on debug output.
40

NOTES

42       Functionality similar to this is implemented in
43       html/Elements/SetupSessionCookie ; however, that does not guarantee
44       that a session will be removed from disk and database soon after the
45       timeout expires.  This script, if run from a cron job, will ensure that
46       the timed out sessions are actually removed from disk; the Mason
47       component just ensures that the old sessions are not reusable before
48       the cron job gets to them.
49
50
51
52perl v5.36.0                      2022-07-27              RT-CLEAN-SESSIONS(1)
Impressum