Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
2410790a
Commit
2410790a
authored
Jul 15, 2019
by
Sascha Herzinger
Browse files
dropping sessionListener
parent
7491a41f
Changes
2
Show whitespace changes
Inline
Side-by-side
web/src/main/java/lcsb/mapviewer/web/config/AuthenticationSuccessHandlerImpl.java
View file @
2410790a
...
@@ -52,6 +52,8 @@ public class AuthenticationSuccessHandlerImpl implements AuthenticationSuccessHa
...
@@ -52,6 +52,8 @@ public class AuthenticationSuccessHandlerImpl implements AuthenticationSuccessHa
logger
.
debug
(
logger
.
debug
(
"User "
+
authentication
.
getName
()
+
" successfully logged in using "
+
method
+
" authentication method"
);
"User "
+
authentication
.
getName
()
+
" successfully logged in using "
+
method
+
" authentication method"
);
request
.
getSession
().
setMaxInactiveInterval
(
Configuration
.
getSessionLength
());
Map
<
String
,
Object
>
result
=
new
TreeMap
<>();
Map
<
String
,
Object
>
result
=
new
TreeMap
<>();
result
.
put
(
"info"
,
"Login successful."
);
result
.
put
(
"info"
,
"Login successful."
);
result
.
put
(
"token"
,
request
.
getSession
().
getId
());
result
.
put
(
"token"
,
request
.
getSession
().
getId
());
...
...
web/src/main/java/lcsb/mapviewer/web/config/SessionListener.java
deleted
100644 → 0
View file @
7491a41f
package
lcsb.mapviewer.web.config
;
import
lcsb.mapviewer.common.Configuration
;
import
javax.servlet.annotation.WebListener
;
import
javax.servlet.http.HttpSessionEvent
;
import
javax.servlet.http.HttpSessionListener
;
@WebListener
public
class
SessionListener
implements
HttpSessionListener
{
@Override
public
void
sessionCreated
(
HttpSessionEvent
se
)
{
se
.
getSession
().
setMaxInactiveInterval
(
Configuration
.
getSessionLength
());
}
@Override
public
void
sessionDestroyed
(
HttpSessionEvent
se
)
{
}
}
Write
Preview
Markdown
is supported
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