Skip to content
New issue

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

Non expiring sessions expiring after 5 minutes #3320

Open
nfawcett opened this issue Jan 13, 2025 · 0 comments
Open

Non expiring sessions expiring after 5 minutes #3320

nfawcett opened this issue Jan 13, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@nfawcett
Copy link

Describe the bug
Updating from spring-session 3.3.5 to 3.4.1 causes non expiring sessions to expire after 5 minutes of inactivity.

To Reproduce

  • RedisIndexedSessionRepository configured with maxInactiveIntervalInSeconds = -1.
  • Call rest controller to create new session.
  • Inspect TTL on spring:session:sessions:{{sessionId}}. TTL counts down from 300.
  • With 5 minutes of inactivity session will expire.

Expected behavior
From version 3.3.5 TTL of spring:session:sessions:{{sessionId}} remains -1.

The issue looks to be related to this commit, here.

Sample
https://github.com/nfawcett/spring-session-expiring-issue. Change versions to see difference in behaviour.

@nfawcett nfawcett added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant