Hi Timo
For your information there is an open feature request (XIVY-1576) that Axon.ivy should do this automatically. However, until this is implemented you can do the following:
Implement a class that implements the non public API Interface: ch.ivyteam.ivy.security.ISessionExtension`ch.ivyteam.ivy.security.ISessionExtension`
Register your class with the ivy security manager during startup:
DiCore.getGlobalInjector(ISecurityManager.class).addSessionExtension(myExtension);
More details see here:
https://answers.axonivy.com/questions/1359/detect-a-user-session-is-closing-because-of-timeout
Regards
Reto Weiss, Axon.ivy Support