OdooWiki OCA HUB

Inactive Sessions Timeout

auth_session_timeout folder_open OCA/server-auth open_in_new
Tools License: AGPL-3

This module was written to be able to kill(logout) all inactive sessions since a given delay. On each request the server checks if the session is yet valid regarding the expiration delay. If not a clean logout is operated.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Automatically logs out users whose Odoo session has been inactive for a configurable delay (2 hours by default), while keeping certain URLs from counting as activity.

This module adds an automatic logout for inactive users. On every request the server checks how long ago the user's session was last active; if that time is longer than the configured delay, the session is closed with a clean logout instead of leaving it open indefinitely.

Two settings are stored as system parameters: - inactive_session_time_out_delay: the inactivity delay in seconds (default 7200, i.e. 2 hours). A value of 0 or less disables the timeout. - inactive_session_time_out_ignored_url: a comma-separated list of paths that should not refresh the session activity timer (by default /calendar/notify and /websocket).

When either parameter is changed, the module clears its internal cache so the new value takes effect immediately.

The check runs during request authentication and applies to logged-in users only; public/portal users are not affected. It touches ir.config_parameter, ir.http and res.users. There are no new menus or screens: the behaviour is automatic and configured through the existing system parameters.

Models and fields (1)
  • ir.config_parameter · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/server-auth.

terminal Installation and usage

OCA documentation · Odoo 19.0

Two system parameters are available:

  • inactive_session_time_out_delay: validity of a session in seconds (default = 2 Hours)
  • inactive_session_time_out_ignored_url: technical urls where the check does not occur

Setup the session parameters as described above.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.