Page 1 of 1

--Detecting manual logout

PostPosted: Thu Oct 20, 2016 1:01 pm
by Development@SIB


This article is outdated - please use our new system at

https://doc.sibvisions.com




If you work with your own Security manager it might be useful to know the difference between manual logout and session destroy because of a timeout.

The ProjX application sets the connection/session property userlogout to true (String). You can check the property via

Code: Select all
<ISession>.getProperty("userlogout");

The property is set if the user manually logs out from the application. It's not set if the user doesn't logout manually.

With newer JVx versions, it's also possible to read the session property expired. It's set to Boolean.TRUE in case of an automatically expired session.