Entering content frame

Procedure documentation Configuring the SAP J2EE Engine Cookies Locate the document in its SAP Library structure

Use

You can configure the attributes that the Web Container uses when creating application 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 application cookies, see SAP J2EE Engine Cookies. You use the web-j2ee-engine.xml to define the attributes.

Procedure

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 drop-down list. It is either SESSION or APPLICATION.

       4.      Choose the path attribute from the Path drop-down 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 drop-down 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.

Example

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. If the value of the field is negative, the cookie will never expire. By default, cookies have no expiration period.

 

 

Leaving content frame