Hari, Well, then I still don't see what the SessionBinding event is going to do for you. Don't use the meta-refresh header I mentioned in the last email. Use an event handler in JavaScript to monitor keypress and click events on the page. In the event handler, call the setTimeout() function call to set a timeout in 5 minutes. Every time the event handler is called, it will reset the timeout to occur 5-minutes in the future. In your timeout event handler you do a form submit. Your servlet that handles the form submit will check the presence of a valid session or just check for a boolean hidden field that is set by the timeout event handler. The hidden field can be set if the form is submitted by the timeout event.
In regards to using the SessionBinding and SessionUnbinding events, these happen on the server and can not initiate a page refresh on the user's browser. Regards, Richard At 04:00 PM 10/31/01 +1100, you wrote: >Hi, > >I just want my application to do that, when user is no on the system for >more than 5 minutes. See while see is filling the reserations. If the page >refreshes all the data is lost and doesnt look good application. so i want >that sessionBindingEvent. > >Regards. >Hari Yellina. >----- Original Message ----- >From: Richard Yee <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, October 31, 2001 2:34 PM >Subject: Re: Embeding SessionBinding Event into Jsp > > > > Hari, > > Why don't you set the session timeout to be 5 minutes and put a > > meta-refresh tag in the page for a time > 5 minutes (say 5 minutes 10 > > seconds). If the session is invalid, then redirect to a login page? By > > doing this, you won't have to handle the session unbinding event. > > > > Regards, > > > > Richard > > > > > > > > > > > > > > At 11:13 AM 10/31/01 +1100, you wrote: > > >Hi All, > > > > > > I am developing Point of Sale Application. I want user to lock the > > > System in 5 minutes. It has to happen automatically, if the user is not > > > using for a 5 minutes. > > > > > >I have seen and heard , It can be done valueBound and ValueUnbound > > >methods. If anyone has solved and used in jsp. Or using it as servlet and > > >and linking in a jsp page. > > >If any one had solved this problem. Please mail and a piece of code would > > >be of great Help > > > > > >Regards, > > >Hari. > > > > >=========================================================================== > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
