Configuring the J2EE Engine
Cookies
You can configure the attributes that the Web Container uses when creating load balancing or session cookies. You configure this for each Web application if you want to specify different attributes from the default ones. For more information about the default attributes of the session and load balancing cookies, see J2EE Engine Cookies. You use the web-j2ee-engine.xml to define the attributes.
On the web-j2ee-engine.xml screen, proceed as follows:
...
1. Open the Cookies screen.
2. To add a new cookie entry, select cookie configurations and choose Add.
3. Choose the cookie type from the Type dropdown list. It is either SESSION or APPLICATION.
4. Choose the path attribute from the Path dropdown list or enter a custom string that you want to be set as path attribute of the cookie. The default value is APPLICATION. Here are the semantics of the values:
Value of the Path Field |
Semantics of the Value |
APPLICATION |
The Web Container sets “/” (slash) as path attribute of the cookie. |
NONE |
No path attribute is set at all. |
If the user specifies another string, it is set as the path attribute of the cookie.
5. Choose the domain attribute from the Domain dropdown list or enter a custom string that you want to set as the domain attribute of the cookie. The default value is SERVER. Here are the semantics of the values:
Value of the Domain Field |
Semantics of the Value |
SERVER |
The Web Container sets the domain part of the hostname taken from the request as the domain attribute of the cookie.
If the hostname from the request is http://help.sap.com, the domain attribute of the cookie is set to sap.com. |
NONE |
No domain attribute is set at all. |
If the user enters another string, it is set as the domain attribute of the cookie.
6. Optionally, you can set the expiration period of the cookie in seconds. To do this, you must enter a positive integer number in the Maximum age field. To discard the cookie, set the value to 0. If you do not specify a maximum age, the cookie expires with the end of the HTTP session. By default, the value is not set.