One more servlet Q: Http Session# Java - 爪哇娇娃
r*s
1 楼
I got some weird problem with session handling. Maybe I
misunderstand something about session. Don't the objects
stored in the session belong to the current session only?
Why can other sessions get the objects?
Here, I put a service reference to session:
session.setAttribute(SERVICENAME, ref);
Should I add the session id too to distinguish the key?
session.setAttribute(SERVICENAME+session.getId(), ref);
Could Qing DX give give some light on it?
Thanks!
misunderstand something about session. Don't the objects
stored in the session belong to the current session only?
Why can other sessions get the objects?
Here, I put a service reference to session:
session.setAttribute(SERVICENAME, ref);
Should I add the session id too to distinguish the key?
session.setAttribute(SERVICENAME+session.getId(), ref);
Could Qing DX give give some light on it?
Thanks!