Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe06.iad.POSTED!00000000!not-for-mail From: "a" Newsgroups: comp.lang.java.programmer Subject: handling stale session Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="big5"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463 Message-ID: <3giOp.18865$tp.177@newsfe06.iad> NNTP-Posting-Host: 24.84.38.49 X-Complaints-To: internet.abuse@sjrb.ca X-Trace: newsfe06.iad 1309257855 24.84.38.49 (Tue, 28 Jun 2011 10:44:15 UTC) NNTP-Posting-Date: Tue, 28 Jun 2011 10:44:15 UTC Date: Tue, 28 Jun 2011 03:44:15 -0700 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5726 Hi My question is about handling the stale session caused by user exit application without logout. I use a table to maintain session info and user, e.g, session id, user oid. If the user exits the application without logout properly or the web server restart, there is a record left on the table. I am planning to check the validity of the session id on the table when the user next login. Is it possible to check whether the session is still alive or not by telling the session id? Thanks