Detecting manual logout

Information about development with ProjX.

Detecting manual logout

Postby Development@SIB » Thu Oct 20, 2016 1:01 pm

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.
User avatar
Development@SIB
 
Posts: 311
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation