jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Multiple Session Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Multiple Session Management" Watch "Multiple Session Management" New topic

Multiple Session Management


Joined: Dec 22, 2000
Posts: 2
Can anyone tell as to how I can manipulate multiple? Basicali, i want that the admin of my web application should be able to invalidate user session as and when he want. He may be invalidating more than one user at a time.
Pls. help!!!
Thanx in advance
Brett Knapik
Ranch Hand

Joined: Oct 15, 2000
Posts: 255
well create a jsp file where it gets a list of current sessions put checkboxes next to each one of them for the ones they want to invalidate then they submit it then in the backround you put the submitted data into a hashtable, vector or array then you use a for statement to invalidate each session with the invalidate() method.
I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I don't think you are going to be able to easily get a list of HttpSessions if that is the kind of session you are talking about. That was possible in an early (pre 2.1) version of the API with the HttpSessionContext class but got removed for security reasons.
You will need to create a separate mechanism - it would not have to be tracking HttpSession objects, you could create your own class and tracking mechanism.
I agree. Here's the link: http://aspose.com/file-tools
subject: Multiple Session Management
It's not a secret anymore!