Debian Codegraph @

doc/sources/admin/filesessionbackend.rst

raw
1 File session backend
2 ====================
3
4 File session backend is the more simple session database. Sessions are
5 stored as files in a single directory. Lock files are stored in another
6 directory. It can not be used to share sessions between different
7 servers except if you share directories (with NFS,...) or if you use
8 :doc:`SOAP proxy<soapsessionbackend>`.
9
10 Setup
11 -----
12
13 In the manager: set
14 "`Apache::Session::File <http://search.cpan.org/perldoc?Apache::Session::File>`__"
15 in "General parameters » Sessions » Session storage » Apache::Session
16 module" and add the following parameters (case sensitive):
17
18 =================== ============================== ===================================
19 Required parameters
20 =================== ============================== ===================================
21 Name Comment Example
22 **Directory** The path to the main directory /var/lib/lemonldap-ng/sessions
23 **LockDirectory** The path to the lock directory /var/lib/lemonldap-ng/sessions/lock
24 =================== ============================== ===================================
25
26 Security
27 --------
28
29 Restrict access to the directories only to the Apache server. Example:
30
31 .. code-block:: shell
32
33 chmod 750 /var/lib/lemonldap-ng/sessions /var/lib/lemonldap-ng/sessions/lock
34 chown www-data:www-data /var/lib/lemonldap-ng/sessions /var/lib/lemonldap-ng/sessions/lock
35