Invalidating the session in javascript

Your connection could be dropped, or power go down which would make any 'on Close' event unreliable.You can try to time out sessions after a certain amount of inactivity.However there is no guarantee that a user hasn't just gone to lunch and wants an open session when they return.There are also some other problems involved with timing user inactivity via Java Script on the client. Timer must be reset each time a user constitutes activity with the server to work reliably.I have also considered using the interface Disposable Bean but its dispose() method is also called when the browser is refreshed.

Hey, all Java & JSP gurus, i'm developing a website using JSP and MS SQL.I have seen some banking sites wherein this kind of functionality is implemented. This should also happen when the user clicks on refresh.I have seen some banking sites wherein this kind of functionality is implemented.i don't know if i should use jsp, javascript or html to do this. Hey, all Java & JSP gurus, i'm developing a website using JSP and MS SQL.In my application i am allowing only 3 admin users at a time to log in to the application.Maybe the ICEfaces developers could clarificate how to face this kind of stuff. The server will invalidate your session anyway after X minutes of inactivity.People tend to forget that HTTP protocol is STATELESS.Output: while opening display page, all the attributes are getting displayed on client (browser).I need to find a way to invalidate the session when the user closes the browser.Can you please tell me the code to invalidate a session object i.e.the code for logout (to be written in JSP) Following is my code for creating session object, on login: hi friends, i am new jsp, in my login and logout page is must.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “invalidating the session in javascript”