Automatic logout for web application
- Last UpdatedSep 09, 2024
- 2 minute read
When the web client has been idle for 20 minutes or longer, the user may get automatically logged out.
The default auto-logout time is 20 minutes of inactivity, unless the user has a tab with a refresh page open.
The activity timeout value can be set by the OSM System Administrator.
ActivityTimeout setting
In the config.yaml, there is an activityTimeout setting that controls how many minutes of inactivity OSM will wait before logging out the user.
Pages with automatic refresh
The following pages will stop automatic logout:
-
Work Permit Library if user has turned on automatically refresh of library.
-
View Plot Plan if user has turned on automatically refresh of plot plans.
Scenarios
Explanation of scenarios where user will or will not be logged out.
Scenario 1 - Only one tab with a refresh page
User opens OSM Web Application in a browser with only one (1) tab containing an OSM page.
-
Page supports automatically refresh.
-
User will not be automatically logged out.
-
Example: Work Permit Library page
Scenario 2 - Only one tab with a non-refresh page
User opens OSM Web Application in a browser with only one (1) tab containing an OSM page.
-
Page does not support refresh.
-
User will be automatically logged out according to activity timeout value set by OSM Administrator.
-
Example: Supplementary Library page or Work Permit Details page.
Scenario 3 - Several tabs with one refresh page
User opens OSM Web Application in a browser with several tabs all containing OSM pages.
-
One of the tabs has a page that supports automatically refresh. The page does not need to be the active tab (tab with focus).
-
User will not be automatically logged out.
-
Example: Four (4) tabs with following pages:
-
Work Permit Details page
-
View Plot Plan page
-
Supplementary Form Library page
-
SJA Details page
-
Scenario 4 - Several tabs with only non-refresh pages
User opens OSM Web Application in a browser with several tabs all containing OSM pages.
-
None of the pages support refresh.
-
User will be automatically logged out from all tabs according to activity timeout value set by OSM Administrator.
-
Example: Four (4) tabs with following pages:
-
Work Permit Details page
-
Work Order Library page
-
Supplementary Form Library page
-
SJA Details page
-