How can i get session object based on session id?
Hello,How can i get session object based on session id, without used a map storaged the differents session, if it's possible.the goal is to invalidate the last session of the user when he want to re-connect and open a new session.thanks in advance
[276 byte] By [
lba29a] at [2007-11-27 4:33:22]

# 1
> without used a map storaged the differents session,No, you can't do it without storing the sessions. But this is actually a piece of cake: implement a HttpSessionListener, listen for created and destroyed sessions and maintain the sessions in a static Map.