Discussions

Web tier: servlets, JSP, Web frameworks: Sessions Shared Among Different Browsers?!!

  1. Sessions Shared Among Different Browsers?!! (1 messages)

    Hi, I'm using Tomcat4.0.6 and "trying" to save information in sessions: ie, session.setAttribute("attrName", someJavaClass) in a servlet to save the info and then retrieve the info later in a .JSP which is "called" by the servlet via sendRedirect( "someJSP" ). Within "someJSP" I try to unpack the data using: session.getAttribute("attrName");

    Here's the problem: If two users are connected to the web-application at two different browsers -- BOTH will see the SAME information saved in ONE of the users sessions. Any thoughts on this??

    Thanks!
  2. Hmm... Are you using instance variables to store attributes in jsp?