Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
5f6e76d7
Commit
5f6e76d7
authored
Jun 12, 2022
by
linlinjava
Browse files
fix[litemall-admin-api]: 修复setSessionIdUrlRewritingEnabled设置失效
parent
d92014c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/shiro/AdminWebSessionManager.java
View file @
5f6e76d7
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment