Configuring a restrictive cookie path in Liberty

You can restrict cookie access to the context path of your application in Liberty.

Procedure

  1. Go to path_to_liberty/wlp/usr/servers/<server_name>.
  2. Open the server.xml file and add the following cookie path within the server root element.

    <httpSession useContextRootAsCookiePath="true"/>

  3. Save your changes.