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

Extra session cookie randomly generated #3312

Open
d3bt3ch opened this issue Dec 27, 2024 · 2 comments
Open

Extra session cookie randomly generated #3312

d3bt3ch opened this issue Dec 27, 2024 · 2 comments
Labels
status: waiting-for-triage An issue we've not yet triaged type: bug A general bug

Comments

@d3bt3ch
Copy link

d3bt3ch commented Dec 27, 2024

We are using spring-web, spring session 3.4.1, tomcat. Sometimes an extra session cookie is getting generated randomly as follows

JSESSIONID	node0t2zjr9obxy80amzfh10llwlq50.node0	localhost	   /	Session	47 B		✓	

I could not find any resources related to the issue

@d3bt3ch d3bt3ch added status: waiting-for-triage An issue we've not yet triaged type: bug A general bug labels Dec 27, 2024
@d3bt3ch
Copy link
Author

d3bt3ch commented Dec 28, 2024

Hello, we tried to solve the issue.

This is what we did:

Update the SessionRepositoryRequestWrapper class to override getSession() and prevent Tomcat from creating its own session, which causes an extra JSESSIONID cookie.

You can review changes in this commit: mark-addams001881@ab1e6d5.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

Is the spring team fixing the issue soon ?

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

2 participants
@d3bt3ch and others