在web.xml中添加配置:
<session-config>
<cookie-config>
<path>/</path>
</cookie-config>
</session-config>
在web.xml中添加配置:
<session-config>
<cookie-config>
<path>/</path>
</cookie-config>
</session-config>
转载于:https://my.oschina.net/u/2334022/blog/472885