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.
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.
{ "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
andservice
properties).
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.