You can restrict cookie access to the context path of your application in
Liberty.
Procedure
-
Go to path_to_liberty/wlp/usr/servers/<server_name>.
- Open the
server.xml
file and add the following cookie path within the
server root element.
<httpSession useContextRootAsCookiePath="true"/>
- Save your changes.