Ulf Dittmer wrote:If you need to restart Tomcat then you're definitely doing something wrong.
If a session already exists, then the user should not need to log in again. The web app should not even show the login page to anyone who is logged in already.
Sudhakar Sharma wrote:But if you really want to kill the session whenever, user closes his browser, you need to go through javascript, because server has no idea of this event.
Bear Bibeault wrote:
Sudhakar Sharma wrote:But if you really want to kill the session whenever, user closes his browser, you need to go through javascript, because server has no idea of this event.
Neither does JavaScript.
Bear Bibeault wrote:Scriptlets in 2011?
In any case, visiting a login page is not the same a closing the browser.
blog: http://tunatore.wordpress.com
https://www.udemy.com/spring-framework-4-course-and-core-spring-certification/?couponCode=spring39coupon
Core Spring Certified Professional + SCJP 6.0 + SCWCD 1.5
Tuna Töre wrote:
Bear Bibeault wrote:Scriptlets in 2011?
Which Java Technology you offer other than Scriptles in 2011 ???
preethi Ayyappan wrote:Thanks for your reply. If the user closes the browser without logging out properly, Their session has not been killed and if they try to login again they are not able to login to the form. We need to restart the tomcat again. To overcome this I am trying to accelarate the session kill function to kill the session which logs out properly. Am i doing wrong? Is there any other way to solve this?
blog: http://tunatore.wordpress.com
https://www.udemy.com/spring-framework-4-course-and-core-spring-certification/?couponCode=spring39coupon
Core Spring Certified Professional + SCJP 6.0 + SCWCD 1.5
As far as I know, there is no way to call a Servlet Method by detecting browser close event. Forexample; in many Banking applications you should see a button to close the Session in a secure way. The user should click this button to close the session or the session times-out by server.
Tuna Töre wrote:
There is an example jsp code to get the user session;
What's a year in metric? Do you know this metric stuff tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|