Extra session cookie randomly generated
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
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 ?