--
I have a servlet which will be accessed quite a lot (it handles information
for
almost every page of my site) and I want to be sure that user data will not
bleed together. What I mean by that is that I understand if you have a
servlet
and two users access it at roughly the same time, they may change the values
of
the same variables, thus causing problems. The solution I read about was
using
synchronized in your methods, however, it would not be practical to
synchronize
the whole servlet.
My thought was to store variables in a users session, thus having a seperate
variable space for each user. Am I making it harder than it is? If not, the
question is, how do I keep each user's session seperate if my applet is
using
a single Session variable to hold a user's session? Almost a chicken-and-egg
type thing.
If you have any thoughts on this, or if I can clarify it, please get back to
me! =)
Thanks,
-- Joshua Slack
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]