We're running into an issue with multiple JSESSIONID
being sent. Our web app is a JavaEE web app with Payara Server 5.2021.10.
The login page gets a JSESSIONID
for the /
path before logging in. After logging in, we redirect to /my-app
and the browser is issued a second JSESSIONID
for the /my-app
path. The first cookie for /
remains and is not refreshed, which could leave us vulnerable to a session fixation vulnerability.
Is there any config in web.xml
or any Java side code that could prevent receiving a JSESSIONID
before the user is actually logged in?