-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Session change doesn't remove old session #1519
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
Hi @finke-ba, thanks for reaching out. Conceptually, Spring WebFlux's Are you experiencing any concrete problem with this? |
@vpavic, thank you for the response. |
What's the actually |
I'm using |
MongoDB implementation is handled by separate project - you should open an issue against spring-session-data-mongodb repo. Once you do that, feel free to post a link to that issue here. I'm going to close this for now, if it turns out this is a problem in Spring Session core, we can always reopen the issue later on. |
@vpavic could you tell me please why
|
@vpavic please check this example - https://github.com/finke-ba/webflux-logout-not-delete-session-example |
As explained in previous comment, this is a responsibility of For example, in Redis implementation this project provides, this is handled by Redis Lines 305 to 306 in e2abe36
So the problem really is in MongoDB implementation, and should be reported in the appropriate project. |
Okey, thank you for you help a lot! |
Hello @vpavic.
SpringSessionWebSessionStore
in methodchangeSessionId()
only change session id, but doesn't remove old one.But in default implementation of
SessionStore
-InMemoryWebSessionStore
it delete current one first and create new after that:Was it implemented without deleting old session by purpose and what is the correct way of removing old session in this case?
The text was updated successfully, but these errors were encountered: