Shriram Pandit wrote:Thanks Jeanne for the reply but real problem is we never know if client closes browser without properly logging out.
Right. But that problem isn't solvable.
Shriram Pandit wrote: Also do you think if it would be a overhead on database becuase every request there will database call.
You can cache in memory for X seconds rather than check every request. Or if you are only running on one clone/JVM, you can do the whole thing in memory. If not, what alternatives do you have? You could write to the file system, but that's not going to better.