Discussions

General J2EE: Session Info Lost - Struts

  1. Session Info Lost - Struts (4 messages)

    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

    Threaded Messages (4)

  2. Session Info Lost[ Go to top ]

    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
  3. Session Info Lost[ Go to top ]

    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
  4. Session Info Lost[ Go to top ]

    Problem solved... thanks
  5. Lost Session info[ Go to top ]

    Just out of curiousity, what was your solution?