Invalidating session in spring mvc
You sound like you expect that you can change this value in the middle of running the application. The JSESSIONID domain was changed and Tomcat was restarted.When a user enters on the app, he receives a JSESSIONID, e.g., "12345678".I could review the situation in those terms, but since you apparently need to know what you need to know, I won't bother.If I read it correctly, however, this is a case where a superior context ("/", or the root context) will override inferior contexts ("/abc", "/def").
On the Spring-MVC video training course, I described three different approaches to handling sessions in Spring.
After that, when I perform a http Session.invalidate() the session is reset but JSESSIONID value does not change. I also tried to remove the JSESSIONID cookie manually, but it seems that Tomcat or Spring are not letting I change its value. I'd like to know if it's possible to change this behavior either on Spring or in Tomcat. If you change the cookie domain in a Tomcat Context, you would have to restart the entire web application.