I'm working on a code that makes XMLHttpRequests to a servlet under tomcat, and have a problem with JSESSIONID.
when I go to the root page of the servlet, I see that the browser gets a JSESSIONID with a value like, for e.g.: "289AC12DA7F448E16F13A8D5D1B22125".
then I have a login in which I use an ajax call, and I see that this request uses the same jsessionid that I mentioned above.
after the login, I can move to the other parts of the program by using a menu, but when a new page is loaded, a different jsessionid is sent and this way the user is not recognized
I'm trying to understand if I can resolv this issue by using cookies, but I'm not sure of what exactly I should do... can you help me in any way?