Show TOC

Procedure documentationConfiguring Cookies Locate 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.

Prerequisites

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

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

    Note Note

    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.

    End of the note.

Procedure

Configuring Cookies Locally (per Application)
  1. In SAP NetWeaver Administrator, choose   Configuration   Infrastructure   Application Modules   .

  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   services   servlet_jsp  

  3. If necessary, choose   View   Expert Mode   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   File   Apply Changes   in the main menu.