Apache::Session::MongoDB is a faster shareable session backend
Install and launch a MongoDB server. Install Apache::Session::MongoDB Perl module (version ⩾ 0.14 required).
In the manager: set Apache::Session::MongoDB in General parameters
» Sessions
» Session storage
» Apache::Session module
and add the following parameters (case sensitive):
Optional parameters | ||
---|---|---|
Nom | Commentaire | Exemple |
host | MongoDB server (default: 127.0.0.1:27017) | 127.0.0.1:27017 |
db_name | Session database (default: sessions) | llconfdb |
collection | Collection (default: sessions) | sessions |
auth_mechanism | Authentication mechanism | PLAIN |
auth_mechanism_properties | ||
connect_timeout | Connection timeout | 10000 |
ssl | Boolean or hash ref (default: 0) | 1 |
username | Username to use to connect | lluser |
password | Mot-de-passe | llpassword |
Restrict network access to the MongoDB server. Pour les serveurs distants, vous pouvez utiliser le module SOAP d'accès aux sessions en complément pour augmenter la sécurité de ces serveurs qui accèdent aux sessions au travers d'un réseau non sûr