Forums Register Login

code to get entire session

+Pie Number of slices to send: Send
In session , we can use getAttribute and setAttribute methods to get and set attributes from one servlet to another.
Is it possible to get entire session to some other place.
+Pie Number of slices to send: Send
That's what request.getSession() does. It gets the "entire session".
+Pie Number of slices to send: Send
Not a "beginning" topic. Moving thread.
+Pie Number of slices to send: Send
Always keep in mind that session objects are managed by the container (just like request and response objects)

You should NEVER NEVER try to keep a copy of a session reference longer than a single request/response cycle.

Bill

+Pie Number of slices to send: Send
 

William Brogden wrote:You should NEVER NEVER try to keep a copy of a session reference longer than a single request/response cycle.



+1
Nor should you use that reference outside of the request-handling thread...
Do not threaten THIS beaver! Not even with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 988 times.
Similar Threads
Session mgmt in Websphere
jsp to antoher jsp without submitting it
Applet to Servlet session problem
Get access to session scoped form data from a different action
Hibernate and stateless session beans
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:40:10.