I have an implementation of HttpSessionListener
where 'locked' resources in the application are released with sessionDestroyed
method.
The 'lock' information is maintained in database, and the release of locks is working fine in most cases. But In some cases I still see resource is locked - even if there is no session active!
So, I'm doubting if there is possibility that sessionDestroyed
not being invoked? Suppose if the session is timed out - will sessionDestroyed
method be called?
Suppose user closes browser tab without logging out(destroying session) -then will the listener be invoked?
Thanks in advance!