Hi there,

I want to implement an applicatif lock mechanism.
In my web-site, I have a set of pages that can modify some global informations (let's 
say for example the list of administrators).
I want to refuse access to these modification pages when somebody is currently 
modifying this information.

I think of creating a Singleton class that implements a lock variable. But my problem 
is, how we can prevent the case where a person access to these pages (thus positioning 
the lock), but forget to get out of these pages properly (for example when he kills 
the browser).

Has anybody been confronted to this problem ?
Is there any mechanism in JSP/Servlet technology to capture the end of a user session 
and do some action ?

Thanks in advance for your help,

tony riyanto
[EMAIL PROTECTED]

Reply via email to