Search code examples
androidsessionservletswebspherejsessionid

JSESSIONID=0000fWm58im_RcpQXmWI8LlDdvg:-1 what does ":-1" resembles to?


I am trying to solve android session problem which i am facing with IBM Websphere server and when i logged response headers , JSESSIONID has ":-1" appended to it .What does ":-1" mean ??


Solution

  • The part of the session cookie after : refers to the server cloneID or partitionID (in case of memory to memory session replication). It is used by WebSphere plugin to provide session affinity and route request to specific server holding session data. If session affinity is not required, then you can remove cloneId from plugin-cfg.xml and requests will be simply load balanced among servers.

    -1 says that you don't have cloneID set in the plugin-cfg.xml file or your server doesn't have cloneID set. This is usual in case of single server deployments (not clustered).