OdooWiki OCA HUB

Web Session Auto Close

web_session_auto_close folder_open OCA/web open_in_new
Uncategorised License: AGPL-3

This module automatically closes inactive user sessions based on a configurable timeout. If no activity is detected within the set duration, the session is destroyed, and the page reloads.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Automatically logs out users who have been inactive for a configurable number of seconds. Administrators set the timeout in Settings; when the time passes without mouse or keyboard activity, the session is closed and the page reloads.

This module adds an automatic logout for inactive users. An administrator can set the allowed idle time in seconds under Settings, in the Users section, using the field "Session Auto-Close Timeout (seconds)". The default is 600 seconds (10 minutes).

Once configured, Odoo watches for mouse movement and key presses in the backend. If no activity happens within the configured time, the user's session is destroyed and the page reloads, returning the user to the login screen. The last activity time is stored in the browser, so the check also works after a page refresh.

The setting is saved as a system parameter (web_session_auto_close.timeout) and is read by the web client through a dedicated route. The module only touches the general settings screen (res.config.settings) and the web client; it does not change any business documents, sales, inventory or accounting data.

Depends on

web
Models and fields (1)
  • res.config.settings · extends an existing modelsession_auto_close_timeout (Session Auto-Close Timeout (seconds))

Text generated by AI (DeepSeek) from reading the Odoo 18.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: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

The timeout can be adjusted in Settings > General under "Session Auto-Close Timeout", where the value is set in seconds.

No verified information in OCA: Installation, Usage.

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.