In your web application server, you can restrict cookie access to a specific application for enhanced security. If not restricted, cookies are valid across all the deployed applications.
Procedure
-
If you are using WebLogic, perform the following steps.
-
Extract the weblogic.xml file from the WAR or EAR package where you want to add the restrictive cookie path.
-
Add the following to the weblogic.xml file, where context-path is the context path for the deployed application. For Unica applications the context path is typically /unica.
<session-descriptor>
<session-param>
<param-name>CookiePath</param-name>
<param-value>/context-path> </param-value>
</session-param>
</session-descriptor>
-
Rebuild the WAR or EAR file.
-
If you are using WebSphere®, perform the following steps.
-
In the WebSphere® administration console, navigate to the tab.
-
Set the Cookie Path to the context path of your application.
For Unica applications the context path is typically /unica.