Skip to content

Commit 5c1de37

Browse files
committed
Don't set the currentSessionId to non-null unless we found the session in Redis. Fixes #25.
1 parent baae780 commit 5c1de37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/radiadesign/catalina/session/RedisSessionManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ public Session findSession(String id) throws IOException {
344344

345345
if (session != null) {
346346
currentSessionIsPersisted.set(true);
347+
} else {
348+
currentSessionIsPersisted.set(false);
349+
id = null;
347350
}
348351
}
349352

0 commit comments

Comments
 (0)