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)
-
In SAP NetWeaver Administrator, choose .
-
In the Module List , select the Web module for which you want to configure cookies.
-
In the Web Module Details area, choose the Cookies tab.
-
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
-
In the Config Tool, expand the cluster node of your application server.
-
Choose
-
If necessary, choose to view the full list of properties.
-
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
-
-
-
To apply the changes and restart the application server cluster, choose in the main menu.

