Skip to content

Commit f9e560e

Browse files
author
eugenp
committed
new jsp pages for session management
1 parent 5b2fd4d commit f9e560e

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

spring-security-mvc-session/src/main/resources/webSecurityConfig.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
<remember-me key="uniqueAndSecret" token-validity-seconds="86400" />
1919

20-
<session-management>
21-
<concurrency-control max-sessions="2" />
20+
<session-management invalid-session-url="/invalidSession.html">
21+
<concurrency-control max-sessions="2" expired-url="/sessionExpired.html" />
2222
</session-management>
2323

2424
</http>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2+
<html>
3+
<head></head>
4+
5+
<body>
6+
<h1>Invalid Session Page</h1>
7+
8+
<a href="<c:url value="/login.html" />">To Login</a>
9+
</body>
10+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
2+
<html>
3+
<head></head>
4+
5+
<body>
6+
<h1>Session Expired Page</h1>
7+
8+
<a href="<c:url value="/login.html" />">To Login</a>
9+
</body>
10+
</html>

0 commit comments

Comments
 (0)