开发者

Is it possible to change the path of the JSESSIONID cookie?

开发者 https://www.devze.com 2023-02-22 04:30 出处:网络
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 on

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消