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
aabc2617
Commit
aabc2617
authored
Nov 01, 2020
by
linlinjava
Browse files
chore: shiro升级版本1.6.0
parent
9cf58564
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/shiro/AdminWebSessionManager.java
View file @
aabc2617
...
...
@@ -14,6 +14,14 @@ public class AdminWebSessionManager extends DefaultWebSessionManager {
public
static
final
String
LOGIN_TOKEN_KEY
=
"X-Litemall-Admin-Token"
;
private
static
final
String
REFERENCED_SESSION_ID_SOURCE
=
"Stateless request"
;
public
AdminWebSessionManager
()
{
super
();
setGlobalSessionTimeout
(
MILLIS_PER_HOUR
*
6
);
setSessionIdCookieEnabled
(
false
);
setSessionIdUrlRewritingEnabled
(
false
);
}
@Override
protected
Serializable
getSessionId
(
ServletRequest
request
,
ServletResponse
response
)
{
String
id
=
WebUtils
.
toHttp
(
request
).
getHeader
(
LOGIN_TOKEN_KEY
);
...
...
pom.xml
View file @
aabc2617
...
...
@@ -73,7 +73,7 @@
<dependency>
<groupId>
org.apache.shiro
</groupId>
<artifactId>
shiro-spring-boot-web-starter
</artifactId>
<version>
1.
4
.0
</version>
<version>
1.
6
.0
</version>
</dependency>
<dependency>
...
...
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