Servlet-encodeURL and Jsp-session gives different Session ID!
posted 9 years ago
Hi, I encoded URL of JspA in ServletA, showed that link to user[thru <a href> ] and clicked on that link with cookies Disabled.Then I can see that the URL in address bar of browser shows Different Session ID and when I print session id thru <%=session.getId()%> in JspA, I am seeing a different ID! How is that possible?
If you print the session ID from inside the Servlet, does it match the SessionID that is sent back to the browser and can be seen when you the view source? This is the source of the page that allows you to click the link and go to the JSP.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads