Advertisement

06.04.2007 at 03:41AM PDT, ID: 22610646
[x]
Attachment Details

How to check which existing sessions are valid or invalid

Asked by autoknowledge in Java Servlets

Tags: session, check, how, valid

Hello Experts,

In my application i am maintaining collection( In this collection i am maintaining user ID and session ID) of session which are active and deleting those session from the collection which user logs out. Till here it is working fine.
But when user is inactive for a timeslot which is set for invalidating a  session, In my collection these session id's still exists. My concern is how can i check in available collection which session's are valid and which are not.
To accomplish this, I worked with valueUnbound method of HttpSessionBindingListener interface. I tried to get session ID which are going to invalidate. To implement this i am invoking method setDeletedSessionID(String sessionID) from valueUnbound . But the control is not reaching to this method ( setDeletedSessionID() ) there and session get invalidated.

Will u please describe your views in sort of code flow,
Please help me to come out from this problem.
ThanksStart Free Trial
 
Loading Advertisement...
 
[+][-]06.04.2007 at 09:29AM PDT, ID: 19209824

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.04.2007 at 10:33PM PDT, ID: 19214710

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.04.2007 at 11:03PM PDT, ID: 19214819

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2007 at 09:19AM PDT, ID: 19218193

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Servlets
Tags: session, check, how, valid
Sign Up Now!
Solution Provided By: NHBFighter
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.08.2007 at 12:32PM PDT, ID: 19441012

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.13.2007 at 09:18PM PDT, ID: 19485735

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32