Configuring Cookies

Use

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 .

Prerequisites

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

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

Procedure

Configuring Cookies Locally (per Application)

  1. In SAP NetWeaver Administrator, choose Start of the navigation pathConfiguration  Next navigation step Infrastructure Next navigation step Application ModulesEnd 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 pathservices Next navigation step servlet_jspEnd of the navigation path

  3. If necessary, choose Start of the navigation pathView Next navigation step Expert ModeEnd 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 pathFile Next navigation step Apply ChangesEnd of the navigation path in the main menu.