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 [#]_ \_oidc_sub [#]_ \_oidc_sid [#]_
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 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 .. [#] ``_oidc_sub`` is used by OpenID Connect single logout when LLNG is an OIDC client, see :doc:`authopenidconnect`.
45 .. [#] ``_oidc_sid`` is used by OpenID Connect single logout when LLNG is an OIDC client, see :doc:`authopenidconnect`.
46 .. [#] ``_webAuthnUserHandle`` is used by :doc:`authwebauthn`.
47
48 .. note::
49
50 If you have configured LemonLDAP::NG to use something other than
51 `_whatToTrace` as the main session identifier, you must replace
52 `_whatToTrace` with the new session field in the previous list
53
54 See Apache::Session::Browseable man page to see how use indexes.
55
56 .. tip::
57
58 It is advised to use separate session backends for standard sessions, SAML
59 sessions and CAS sessions, in order to avoid unused indexes.
60
61 Available backends
62 ------------------
63
64 .. toctree::
65 :maxdepth: 1
66
67 PgJSON Backend (recommended) <pgjsonsessionbackend>
68 browseablemysqlsessionbackend
69 browseableldapsessionbackend
70 redissessionbackend