Redis save uses then
We need to ensure that the session id is changed before we save the changes. Otherwise the rename of the session id will override the changes we just made. Fixes: gh-1428
This commit is contained in:
@@ -143,7 +143,8 @@ public class ReactiveRedisOperationsSessionRepository implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Mono<Void> save(RedisSession session) {
|
public Mono<Void> save(RedisSession session) {
|
||||||
Mono<Void> result = session.saveChangeSessionId().and(session.saveDelta())
|
Mono<Void> result = session.saveChangeSessionId()
|
||||||
|
.then(session.saveDelta())
|
||||||
.and((s) -> {
|
.and((s) -> {
|
||||||
session.isNew = false;
|
session.isNew = false;
|
||||||
s.onComplete();
|
s.onComplete();
|
||||||
|
|||||||
Reference in New Issue
Block a user