[keycloak-user] Call javascript function before session timeout

Christoph Machnik christoph.machnik at traveltainment.de
Thu Jan 29 05:36:56 EST 2015


Hi all,

I have a keycloak web-application in that objects can be created and changed. This objects are saved in a databse. When someone logged in at the application and open one of this objects to change it. this object gets markes as locked in the database, so no other user can make changes to this object wihle someone else is editing it.

Th problem, i have, is that, when someone is editig one of this objects and then runs in a session timeout the object has to marked as unlocked. So i have a javascript-method in the application that sends a ajax-request to a servlet to trigger a function that unlock this object. But i have to call this method BEFORE the timeout loggs the user out.

What is the best practice in this case and how i can be sure the method is performed before the user comes to the login screen again ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150129/c5e8cd37/attachment.html 


More information about the keycloak-user mailing list