【发布时间】:2018-09-15 13:20:48
【问题描述】:
我正在尝试在登录后重置 JSESSIONID,但我不能。我尝试了以下方法:
...
HttpSession ghostSession = request.getSession(false);
ghostSession.invalidate();
request.getSession(true);
...
// some more manipulations of the ghostSession here.
...
但是 JSESSIONID 没有被重置。我在这里想念什么吗?是因为在 ghostSession 失效后对其进行的操作会阻止 JSESSIONID 被重置?
顺便说一句,我使用 Resin 4.X 作为我的 Web 容器。
谢谢。
【问题讨论】:
标签: java refresh reset jsessionid resin