-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Spring session not retaining unexpired session #1311
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
Comments
Thanks for the report @veereshwaran - could you by any chance provide a sample app that we could use to reproduce the problem? We also have a similar issue reported in #1270. |
Hi @vpavic Can you refer below git repo? On html page I am calling two API's to SSO server /user/whoami So, My client application properly renders the user-details properly If I set spring.session.store-type=redis Second API ("/user") gives 500 Error with following error message |
I think following code block may cause this issue Line 826 in f00a1b9
In previous version 1.3 Lines 764 to 769 in 3db2e13
Here It will keep the previous session I have configured HttpSecurity But it is not working. |
Thanks for following up and providing details @veereshwaran - I'll try to take a closer look at this soon. |
I was able to reproduce the problem using your sample @veereshwaran, but the sample itself is far from a minimal one, and doesn't reproduce the problem easily enough to get a clearer picture of what's going on. It appears that the error is caused by concurrent requests attempting to change session id. |
Since the underlying issue appears to be the same as in #1270, I'm going to close this one as duplicate. Please track that issue and post further info there. |
Duplicate of #1270 |
Hi
Recently I upgraded spring boot version 1.x to 2.1. In my project I am using spring session with redis + spring OAuth2.
Previous spring session version was
org.springframework.session:spring-session:1.3.3.RELEASE
New spring session version is
org.springframework.session:spring-session-data-redis:2.1.2.RELEASE
In my application, for any valid HTTP request with Session Cookie, it creates the new session.
Here my problem is,
In my application, receives two HTTP request with same session cookie receives 1-5 millisecond time different,
For first request, it will successfully processed. but second request, it will throw the following error
Caused by: io.lettuce.core.RedisCommandExecutionException: ERR no such key
Could you anyone give proper solution to this issue?
The text was updated successfully, but these errors were encountered: