Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5767

Re: handling stale session

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe08.iad.POSTED!00000000!not-for-mail
From "a" <a@mail.com>
Newsgroups comp.lang.java.programmer
References <3giOp.18865$tp.177@newsfe06.iad> <4e0a4776$0$4352$e4fe514c@news.xs4all.nl>
In-Reply-To <4e0a4776$0$4352$e4fe514c@news.xs4all.nl>
Subject Re: handling stale session
Lines 32
MIME-Version 1.0
Content-Type text/plain; format=flowed; charset="big5"; reply-type=original
Content-Transfer-Encoding 8bit
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 <xZAOp.28292$_I7.2396@newsfe08.iad> (permalink)
NNTP-Posting-Host 24.84.38.49
X-Complaints-To internet.abuse@sjrb.ca
X-Trace newsfe08.iad 1309334493 24.84.38.49 (Wed, 29 Jun 2011 08:01:33 UTC)
NNTP-Posting-Date Wed, 29 Jun 2011 08:01:33 UTC
Date Wed, 29 Jun 2011 01:01:33 -0700
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5767

Show key headers only | View raw


Thanks for your reply.
I need to check the validity of the session proactively because I only allow 
one session per IP.
When there is another login request with a duplicated ip, I have to 
determine the validity of the existing session.


"Silvio" <silvio@moc.com> 在郵件 
news:4e0a4776$0$4352$e4fe514c@news.xs4all.nl 中撰寫...
> Approach this from the other end. Add a listener to the session to hook
> into the session timeout and cleanup the session.
>
> Silvio
>
>
> On 06/28/2011 12:44 PM, a wrote:
>> 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
>
> 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

handling stale session "a" <a@mail.com> - 2011-06-28 03:44 -0700
  Re: handling stale session Silvio <silvio@moc.com> - 2011-06-28 23:28 +0200
    Re: handling stale session "a" <a@mail.com> - 2011-06-29 01:01 -0700
      Re: handling stale session Silvio <silvio@moc.com> - 2011-06-29 11:31 +0200
        Re: handling stale session "a" <a@mail.com> - 2011-06-29 11:35 -0700
          Re: handling stale session Silvio <silvio@moc.com> - 2011-06-30 00:12 +0200

csiph-web