Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.26 KB

sessiontimeout-9d24198.md

File metadata and controls

30 lines (19 loc) · 1.26 KB

sessionTimeout

Define the amount of time (in minutes) for which a session can remain inactive before it closes automatically (times out); the default time out is 15 minutes.

Note:

We recommend using the environment variable SESSION_TIMEOUT to configure the session timeout.

If the environment variable SESSION_TIMEOUT is set this property will be overwritten.

Sample Code:

{
  "sessionTimeout": 40
}

With the configuration in the example above, a session timeout will be triggered after 40 minutes and involves central log out.

A session timeout triggers a central log out with the following consequences:

  • Deletes the user session
  • Requests the log out paths for all your back-end services (if you provided these paths in the destinations and service properties).

Note:

sessionTimeout can only be configured in the central routing configuration file (xs-app.json) that belongs to the application router, not in an xs-app.json file that is part of an HTML5 application.