hi kavita, u can check whether the client has closed the connection by using checkError()method of HttpServletResponse class it returns true if there is any problem in writing to the outputstream ie if client has closed the connection. so for long running servlets u can periodically check the output of this method. if the output is true u can return from the doget and dopost method. dont use exit . bye jaya krishna kavitha ramasamy wrote: > Hi, > > I am designing that user login system, where same user cannot make > multiple sessions(multiple entries with the same name). When a particular > user is making a session, the user information is logged into the table and > released from the tablewhen the user closed the session. > > Here if the user close the system(prpoer logout of the system),then it is > releasing all resources,woking fine. > > Once the user made the session, if he close the browser window(not proper > logout), I need to release the resources (session is still there) before > session time out. > > How can I release the resources if the user closes the browser window > before the session time out. > > Any help will be greatly appreciated > Thanks > kavitha > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
begin:vcard n:marada;jaya krishna reddy tel;home:hyderbad-72 tel;work:CMC LTd x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] fn:jaya krishna end:vcard
