cea9150fb7a4be74737138020dff1b523c9024cb
Before 16.0 and https://github.com/odoo/odoo/pull/78857 the session cookie duration was set to 3 months, but the server-side garbage collection of inactive session was reaping them after 7 days of inactivity. The cookie lifetime was essentially superseded by the server-side GC. After https://github.com/odoo/odoo/pull/78857 these limits were made consistent with each other, but the lifetime value was kept at 3 months, which is a bit too long as a default. This commit changes the default SESSION_LIFETIME back to 7 days for both limits. In addition, since the server-side GC is now implemented by a database-specific cron job, this commit introduces an optional system parameter `sessions.max_inactivity_seconds` that can be set to override the default server-side GC threshold, to make it shorter. Note 1: the ICP does not modify the cookie lifetime which will remain set to the default 7 days. This means normal browser sessions won't stay alive for longer than 7 days of inactivity. So `sessions.max_inactivity_seconds` can't be effectively set to a longer expiration time. This seems like a reasonably safe default. Note 2: the session GC happens during the execution of the autovacuum cron job ("Base: Auto-vacuum internal data") which is scheduled once per day by default. When setting a small `sessions.max_inactivity_seconds` value, it may be necessary to increase the frequency of that cron job accordingly. closes odoo/odoo#122964 X-original-commit: 05ff9a2db32c2fb1afa107ac005423218f452290 Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%