Session Manager

Hey all,

I've created a Session manager which records all of the Sessions that are created when somebody logs into my system so I can track and monitor server activity. It catalogs all the info about the session in a servlet that is instantiated when the server starts up (sort of like a JDBC Connection Pool Manager).

When the system starts, it automatically creates 10 sessions (along with 10 instances of my app) for use by the first ten people and then adds and subtracts sessions based on a whole bunch of factors. Each session instance is identified by the sessions 'id'.

The 'adding' is working fine.

My Question is:

how would I nullify an instance of a session independant of the user's actions?

The servlet has a timer that checks every minute for additional tasks to perform....let's say I want to make sure that people are only allowed in for 30 minutes...I want the Servlet to nullify "instance number 12"....(which is stored in the servlet as an HttpSession array) after that time...how would I do that given I have the ID of the session?

Let me know if this is unclear or you need more info.

Thanks.

RG

[1194 byte] By [rgorrie1] at [2007-9-26 3:51:45]
# 1
Could u pls mail me the codes of ur Session ManagerMy id is rit_lak25@hotmail.com,riteshl@zicomsecure.comI will be very thankful if u will mail me......Regars,Ritesh
RitL at 2007-6-29 12:38:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
i think thesetMaxInactiveInterval()could do ur job...(servlet 2.2)just try outRegards,Ritesh
RitL at 2007-6-29 12:38:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...