Skip to content

Commit 5f6e76d

Browse files
committed
fix[litemall-admin-api]: 修复setSessionIdUrlRewritingEnabled设置失效
1 parent d92014c commit 5f6e76d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/shiro/AdminWebSessionManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ protected Serializable getSessionId(ServletRequest request, ServletResponse resp
2929
request.setAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_ID_SOURCE, REFERENCED_SESSION_ID_SOURCE);
3030
request.setAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_ID, id);
3131
request.setAttribute(ShiroHttpServletRequest.REFERENCED_SESSION_ID_IS_VALID, Boolean.TRUE);
32+
// 参考 https://blog.csdn.net/narutots/article/details/120363843
33+
request.setAttribute(ShiroHttpServletRequest.SESSION_ID_URL_REWRITING_ENABLED, this.isSessionIdUrlRewritingEnabled());
3234
return id;
3335
} else {
3436
return super.getSessionId(request, response);

0 commit comments

Comments
 (0)