Search 1.9 billion lines of Odoo code on GitHub

odoo_redis_session_storage

Author: Babatope Ajepe
License: LGPL-3
Branch: 12.0
Repository: ajepe/odoo-addons
Dependencies: base
Languages: HTML (25, 19.8%), Markdown (27, 21.4%), and Python (74, 58.7%)
Other repositories: Jaquedeveloper/odoo-addons, Rodasac/odoo-addons, akurey/ajepe-odoo-addons, cnkenny/odoo-addons, consultingerp/odoo_redis_session_storage, elmosolutions/odoo-addons, leodoooca/odoo-addons, sspankaj/odoo-addons, wahhid/odoo-addons, and wbsouza/odoo-addons-1

<h1>Odoo Redis Session Storage</h1> <hr> <p>This module allows you to use a Redis database to manage sessions, instead of the default Odoo filesystem implementation.</p> <p>Redis is an open source, in-memory data structure store, used as a database, cache and message broker.</p> <p>This module is needed when you have multiple instance of Odoo application server running behind a load balancing application.</p> <p>There will be need to share user session information.</p> <p>You need to install and to start a Redis server to use this module. Documentation is available on <code>Redis website</code>_.</p> <p>You need to install package <strong>redis</strong> <code> pip3 install redis # http://redis.io/topics/quickstart </code></p> <h3>Usage or Configuation</h3> <p>addd and set these following parameter in your configuration file <code>bash session_store = redis redis://username:password@ipaddress:6379/0 </code> * The username is optional but a place holder should be set as shown above</p> <pre><code>* Replace the password with your redis auth password * ipaddress with the redis server address e.g </code></pre> <p>``` e.g //.odoorc as the config file name or your name of choice.</p> <pre><code>session_store = redis redis=redis://username:avlpynVhwvBa34x10NNINZiMRW2C8iJO@redis-13852.c14.us-east-1-2.ec2.cloud.redislabs.com:13852/0` </code></pre> <p>```</p>