提交 56ab865c 编写于 作者: N Nikita Koksharov

Fixed - Spring Session keyPrefix setting isn't used in session name. #1755

上级 203a8c91
......@@ -253,7 +253,7 @@ public class RedissonSessionRepository implements FindByIndexNameSessionReposito
}
String id = body.split(":")[1];
RedissonSession session = new RedissonSession(id);
RedissonSession session = new RedissonSession(keyPrefix, id);
if (session.load()) {
session.clearPrincipal();
publishEvent(new SessionDeletedEvent(this, session));
......@@ -266,7 +266,7 @@ public class RedissonSessionRepository implements FindByIndexNameSessionReposito
}
String id = body.split(":")[1];
RedissonSession session = new RedissonSession(id);
RedissonSession session = new RedissonSession(keyPrefix, id);
if (session.load()) {
session.clearPrincipal();
publishEvent(new SessionExpiredEvent(this, session));
......@@ -304,7 +304,7 @@ public class RedissonSessionRepository implements FindByIndexNameSessionReposito
@Override
public RedissonSession getSession(String id) {
RedissonSession session = new RedissonSession(id);
RedissonSession session = new RedissonSession(keyPrefix, id);
if (!session.load() || session.isExpired()) {
return null;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册