jsp - why does tomcat create a session cookie for every request? -


I am developing a simple web app using JSP / Servlet on Tomcat. I have an index.jsp page which presents the UI and loads the JS code which repeatedly requests "voting" AJAX - Simple stuff

The problem is that each AJAX request is a new one Jsessionid, so I'm trying to store in the session object every time.

This problem is not on my dev machine, where I am calling Tomcat directly, it is only in a staged / live environment where the request is through Apache (on my dev machine) Calling local host ... / path / index.jsp and localhost ... / path / ajax.jsp - live env apache rooms domain.asp /index.jsp from domain.com and domain.com/ajax.jsp Domain.com/path/ajax .jsp)

I've verified that I do not have access to HTTP only or the user Keys elsewhere has been configured. We are using Tomcat 6 BTU.

Can this be an Apache -Tomacet Interaction Issue?

Thanks for any help!

Could this be a problem on the way of cookies, maybe session cookies may be linked to domain.com/path But from the Browser's perspective, the path is domain.com /

To set the path to the cookie / browser also the cookies must be sent to the domain.

Can you observe the cookies in Firebug / Fiddler and post content here?

Comments