Hello
I have got another situation, which is causing problem.
My
servlet class has following lines in the beginning :
Suppose the user closes the browser, and session still is active (some mins remaining to make it inactive)
If some user, without login in, types any url specified in the web.xml, which calls any servlet. Then, that will change the db details, since it will satisfy the condition stated above in if block
That's the reason why i want to invalidate the session on closing of browser