How to get the values of the variables in a different session?
Alex Chaffee Short answer: you can't, at least not directly. However, you can share data across sessions on your own by using the "application context."
- Is there any way to retrieve all of the active session ids on a server? The HttpSessionContext interface used to provide methods to do this, but has since been deprecated in the 2.1 API.
- How can I find out the number of live sessions within my servlet engine using either JSP or servlets?
- How can I join a session with a given sessionId without using cookies? Assume I get the session from the HttpSessionContext passing the session Id.
- What is the difference between request attributes, session attributes, and ServletContext attributes?