We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spring-session/spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisIndexedSessionRepository.java
Lines 930 to 962 in 2353d8b
The following code will always execute, Regardless of whether maxInactiveInterval is less than 0
maxInactiveInterval
RedisIndexedSessionRepository.this.sessionRedisOperations.boundHashOps(getSessionKey(getId())) .expire(fiveMinutesAfterExpires, TimeUnit.SECONDS);
This code in createShadowKey will always be skipped:
createShadowKey
if (sessionExpireInSeconds < 0) { ... RedisIndexedSessionRepository.this.sessionRedisOperations.boundHashOps(getSessionKey(getId())) .persist(); }
long sessionExpireInSeconds = getMaxInactiveInterval().getSeconds(); createShadowKey(sessionExpireInSeconds); if (sessionExpireInSeconds > 0) { long fiveMinutesAfterExpires = sessionExpireInSeconds + TimeUnit.MINUTES.toSeconds(5); RedisIndexedSessionRepository.this.sessionRedisOperations.boundHashOps(getSessionKey(getId())) .expire(fiveMinutesAfterExpires, TimeUnit.SECONDS); } RedisIndexedSessionRepository.this.expirationStore.save(this); this.delta = new HashMap<>(this.delta.size());
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Source:
spring-session/spring-session-data-redis/src/main/java/org/springframework/session/data/redis/RedisIndexedSessionRepository.java
Lines 930 to 962 in 2353d8b
Bug
The following code will always execute, Regardless of whether
maxInactiveInterval
is less than 0This code in
createShadowKey
will always be skipped:How to fix
The text was updated successfully, but these errors were encountered: