Question
2
Replies
473
Views
Posted: May 24, 2018
Last activity: May 25, 2018
Closed
Rename cookie Pega-RULES
We have multiple Pega instances for different applications.
e.g http://localhost:8080/app1 & http://localhost:8080/app2
When user access /app1, the default cookie will be Pega-RULES domain:locahost
When user access /app2, the default cookie will be Pega-RULES domain:locahost
Due to the cookie name, both apps are having same cookie name. How can change the default Pega-RULES cookie name?
Thanks
You can't change the Pega-RULES cookie name. We always add the context root to the cookie path so this separates the values so they wont cause issues. You can change the context root of /prweb, like in your example URLS, at deployment time.
Example:
Set-Cookie: Pega-RULES=<value>; Version=1; Comment="PegaRULES session tracking"; Path=/psupp
We do get support requests for applications sharing the same domain with different context roots with regards to load balancing, PRPC and other applications hosted in same domain. This ends up being an issue with the JSESSIONID that is typically used for session affinity. By default in some application servers they do not append the path to the cookie. Modification to include path or rename JSESSIONID cookie are done at application server level and this always resolves these types of issues.
Hope this helps.
--Chris