Hello all,
I've noticed in some of the tutorial that I've read, as well as in several
of the posts here that
people often use session.getId() when creating a key for attributes to be
added to the
HttpSession. Is there a need to do this? Is it dangerous to use a
hardcoded string as a key?
The only reason I can think to do this is to differentiate between values
stored by different sessions.
This suggests that all values stored by different sessions are in the same
space, with the possibility of
retrieving an incorrect value if something is not done to uniquely identify
which values are associated
with each session. Is this the case?
Thanks for any help you can provide....
-AMT
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html