hazelcast / hazelcast-tomcat-sessionmanager

Tomcat Based Web Session Replication
Other
33 stars 37 forks source link

reading JSESSIONID based on context #112

Open shashank929 opened 3 years ago

shashank929 commented 3 years ago

I am using the library for my web application which is having multiple JSESSIONID cookies because the data is being fetched via multiple servers behind the scenes. Each of these cookies have their own path. For example for my application hosted at https://sitename.com/abc, two JSESSIONID are sent - one for /abc and one for another context path say /xyz-api. Based on what I see in the logs of abc application, the hazelcast tomcat session manager being used in app at path '/abc' is trying to do findSessions for the JSESSIONID of other paths also (/xyz-api). Is there a way to make the JSESSIONID read specific to the context path of the application to ensure it doesn't pick wrong cookie?

shashank929 commented 3 years ago

checking to see if you got a chance to look into it