Hi,
I'm developing an application with Struts and Tomcat, and I have a problem loosing info from the session. I'm using HTTPSession.setAttribute() to put the desired values on the session but when different users put diferent values only the last value remains.
Any idea? I'm lost.
Thanks
-
Session Info Lost - Struts (4 messages)
- Posted by: Hector Iturre
- Posted on: January 17 2005 09:44 EST
Threaded Messages (4)
- Session Info Lost by Stephane Vaucher on January 18 2005 15:34 EST
- Session Info Lost by Hector Iturre on January 19 2005 11:05 EST
- Session Info Lost by Hector Iturre on January 20 2005 07:29 EST
- Lost Session info by John Perkins on February 07 2005 01:35 EST
-
Session Info Lost[ Go to top ]
- Posted by: Stephane Vaucher
- Posted on: January 18 2005 15:34 EST
- in response to Hector Iturre
A session (which is basically a HashTable, so you can't have two values associated to one key) is associated to one user. A user cannot access another's session.
sv -
Session Info Lost[ Go to top ]
- Posted by: Hector Iturre
- Posted on: January 19 2005 11:05 EST
- in response to Stephane Vaucher
Hi,
Yes, I know and thats the problem. For some strange reason when the different users puts values from different browsers the last value remains, like the users where using the same session. I don't know how if Struts manage sessions over Tomcat or only Tomcat does it, so I don't know what to do.
The strange thing is if I create a page with pure jsp the session info doesn't lost.
Thanks for your answer -
Session Info Lost[ Go to top ]
- Posted by: Hector Iturre
- Posted on: January 20 2005 07:29 EST
- in response to Stephane Vaucher
Problem solved... thanks -
Lost Session info[ Go to top ]
- Posted by: John Perkins
- Posted on: February 07 2005 13:35 EST
- in response to Hector Iturre
Just out of curiousity, what was your solution?