This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
New session created when submitting to a action class from JSP
posted 7 years ago
Hi, I have a j2ee application which has a login servlet which creates a session and redirects to a JSP. This JSP submits to an action and when trying to read the session gives a new HTTP session object. New session is created for every action class submission basically for each request. I found with the help of a listener class and when the session ids in the servlet and action are different. I doubt this is because there is no session information in the cookie and thus the container creates a new session even before reading the session in the action class. But i'm not sure if this is the eroblem and the possible fix for this. Can anyone help me fixing this problem?