Is it possible to change the path of the JSESSIONID cookie?
By default, Glassfish stores the JSESSIONID cookie at the context path, for example "/mysite". Is it possible to change this path, for example to "/mysite/admin"? I would like the session to be only v开发者_运维问答alid in part of my website, without having to split it into two separate websites.
Perhaps the other part of your web site should just be configured as another web context? The general idea is that each web context has its own set of sessions, and you don't share nor split them.
精彩评论