Configuring a restrictive cookie path on WebLogic

Configuring a restrictive cookie path is recommended because when multiple applications are deployed on the same domain and the restrictive cookie path is not set, the user may be automatically logged off from the application when one application sends information to another application. You can configure a restrictive cookie path on WebLogic.

About this task

To set the restrictive cookie path in Oracle WebLogic, complete the following:

Procedure

  1. Extract the weblogic.xml file from the war package where you want to add the restrictive cookie path.
  2. Copy the extracted weblogic.xml file to the following location:

    <INSTALL_DIR>/extensions/<WAR Package>

    where <WAR Package> is the package for the deployed application. For example, this would typically be smcfs, sbc, and sfs for the Sterling Warehouse Management System, IBM® Sterling Business Center, and IBM Sterling Field Sales

  3. Add the following to the weblogic.xml file:

    <session-descriptor>
    <session-param> <param-name>CookiePath</param-name> <param-value>/<context-path></param-value> </session-param> </session-descriptor>

    where <context-path> is the context path for the deployed application. For example, this would typically be /smcfs, /sbc, and /sfs for the Sterling Warehouse Management System, IBM Sterling Business Center, and IBM Sterling Field Sales

  4. Rebuild the EAR file.