Debian Codegraph @

doc/sources/admin/browseablesessionbackend.rst

raw
1 Browseable session backend
2 ==========================
3
4 Presentation
5 ------------
6
7 Browseable session backend
8 (`Apache::Session::Browseable <https://metacpan.org/pod/Apache::Session::Browseable>`__)
9 works exactly like Apache::Session::\* corresponding module but add
10 index that increase the speed of some operations. It is recommended in production deployments.
11
12 .. note::
13
14 Without index, LL::NG will have to retrieve all sessions stored in
15 backend and deserialize then filter each of them.
16
17 The following table list fields to index for each session type:
18
19
20 .. _fieldstoindex:
21
22 List of fields to index by session type
23 ---------------------------------------
24
25 .. list-table::
26 :header-rows: 1
27
28 * - Session Type
29 - Fields to index
30 * - Sessions (global)
31 - \_whatToTrace \_session_kind \_utime ipAddr \_httpSessionType user [#]_ mail [#]_ \_session_uid [#]_
32 * - Persistent sessions
33 - \_session\_kind \_httpSessionType \_session\_uid ipAddr \_whatToTrace \_webAuthnUserHandle [#]_
34 * - CAS sessions
35 - \_session_kind \_utime \_cas\_id pgtIou auth_cas_ticket
36 * - SAML sessions
37 - \_session_kind \_utime \_saml_id ProxyID \_nameID \_assert_id \_art_id
38 * - OIDC sessions
39 - \_session_kind \_utime \_oidc_sid \_oidc_sub user_session_id
40
41 .. [#] ``user`` is used by :doc:`resetpassword`.
42 .. [#] ``mail`` is used by :doc:`register`.
43 .. [#] ``_session_uid`` is used by :doc:`trustedbrowser`.
44 .. [#] ``_webAuthnUserHandle`` is used by :doc:`authwebauthn`.
45
46 .. note::
47
48 If you have configured LemonLDAP::NG to use something other than
49 `_whatToTrace` as the main session identifier, you must replace
50 `_whatToTrace` with the new session field in the previous list
51
52 See Apache::Session::Browseable man page to see how use indexes.
53
54 .. tip::
55
56 It is advised to use separate session backends for standard sessions, SAML
57 sessions and CAS sessions, in order to avoid unused indexes.
58
59 Available backends
60 ------------------
61
62 .. toctree::
63 :maxdepth: 1
64
65 PgJSON Backend (recommended) <pgjsonsessionbackend>
66 browseablemysqlsessionbackend
67 browseableldapsessionbackend
68 redissessionbackend