equal
deleted
inserted
replaced
1 .. -*- coding: utf-8 -*- |
1 .. -*- coding: utf-8 -*- |
2 |
2 |
3 Sessions |
3 Sessions |
4 ======== |
4 ======== |
5 |
5 |
|
6 There are three kinds of sessions. |
|
7 |
|
8 * user sessions are the most common: they are related to users and |
|
9 carry security checks coming with user credentials |
|
10 |
|
11 * super sessions are children of ordinary user sessions and allow to |
|
12 bypass security checks (they are created by calling unsafe_execute |
|
13 on a user session); this is often convenient in hooks which may |
|
14 touch data that is not directly updatable by users |
|
15 |
|
16 * internal sessions have all the powers; they are also used in only a |
|
17 few situations where you don't already have an adequate session at |
|
18 hand, like: user authentication, data synchronisation in |
|
19 multi-source contexts |
|
20 |
|
21 Do not confuse the session type with their connection mode, for |
|
22 instance : 'in memory' or 'pyro'. |
|
23 |
6 [WRITE ME] |
24 [WRITE ME] |
7 |
25 |
8 * authentication and management of sessions |
26 * authentication and management of sessions |
9 |
|