Show TOC

Configuring CookiesLocate this document in the navigation structure


This procedure describes how to set custom values of SAP-specific cookies' attributes locally (using the SAP NetWeaver Administrator) and globally (using the Config Tool).

You can also configure cookies locally using the web-j2ee-engine.xml application deployment descriptor.

For more information, see Editing the web-j2ee-engine.xml .

For more information about cookies, their attributes, and default configuration values, see AS Java Cookies .

For more information about levels of configuration, see Configuring Web Modules .

  • To configure cookies locally, you have opened SAP NetWeaver Administrator.

  • To configure cookies globally, you have opened the Config Tool.


    When you are using the Config Tool to change settings of AS Java services, you have to restart the application server so that the new configuration values are applied.


Configuring Cookies Locally (per Application)

  1. In SAP NetWeaver Administrator, choose Start of the navigation path Configuration  Next navigation step Infrastructure Next navigation step Application Modules End of the navigation path .

  2. In the Module List , select the Web module for which you want to configure cookies.

  3. In the Web Module Details area, choose the Cookies tab.

  4. Configure the cookies.

    • To enable or disable the application cookie or the session cookie, select or deselect the corresponding checkbox respectively.

    • To configure the cookies' attributes, specify custom values in the relevant fields for each cookie:

      • Path

      • Domain

      • Maximum Age

    • To save your changes, choose Save.

Configuring Cookies Globally

  1. In the Config Tool, expand the cluster node of your application server.

  2. Choose Start of the navigation path services Next navigation step servlet_jsp End of the navigation path

  3. If necessary, choose Start of the navigation path View Next navigation step Expert Mode End of the navigation path to view the full list of properties.

  4. Specify custom values of the cookies' attributes or restore their default values.

    • For the session cookie, configure the following properties:

      • Global_app_config/cookie_config/session_cookie/path

      • Global_app_config/cookie_config/session_cookie/domain

      • Global_app_config/cookie_config/session_cookie/max-age

    • For the application cookie, configure the following properties:

      • Global_app_config/cookie_config/application_cookie/path

      • Global_app_config/cookie_config/application_cookie/domain

      • Global_app_config/cookie_config/application_cookie/max-age

  5. To apply the changes and restart the application server cluster, choose Start of the navigation path File Next navigation step Apply Changes End of the navigation path in the main menu.