Commit 5f6e76d7 authored by linlinjava's avatar linlinjava
Browse files

fix[litemall-admin-api]: 修复setSessionIdUrlRewritingEnabled设置失效

parent d92014c8
......@@ -29,6 +29,8 @@ public class AdminWebSessionManager extends DefaultWebSessionManager {
request.setAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_ID_SOURCE, REFERENCED_SESSION_ID_SOURCE);
request.setAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_ID, id);
request.setAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_ID_IS_VALID, Boolean.TRUE);
// 参考 https://blog.csdn.net/narutots/article/details/120363843
request.setAttribute(ShiroHttpServletRequest.SESSION_ID_URL_REWRITING_ENABLED, this.isSessionIdUrlRewritingEnabled());
return id;
} else {
return super.getSessionId(request, response);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment