This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, 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 vishal
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."
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. Bill