Sun Java System Web Server 7.0 Update 3 Developer's Guide to Java Web Applications

cookie-properties Element

This element specifies session cookie properties.

Subelement

The following table describes the property subelement for the cookie-properties element.

Table A–18 cookie-properties Subelement

Element 

Required 

Description 

property Element

zero or more 

Specifies a property, which has a name and a value 

Attributes

none

Properties

The following table describes properties for the cookie-properties element.

Table A–19 cookie-properties Properties

Property Name 

Default Value 

Description 

cookiePath

Context path at which the web application is installed. 

Specifies the path name that is set when the session tracking cookie is created. The browser sends the cookie if the path name for the request contains this path name. If set to / (root), the browser sends cookies to all URLs served by the Web Server. You can set the path to a narrower mapping to limit the request URLs to which the browser sends cookies.

cookieMaxAgeSeconds

-1

Specifies the expiration time (in seconds) after which the browser expires the cookie. The default value of -1 indicates that the cookie never expires.

cookieDomain

unset 

Specifies the domain for which the cookie is valid. 

cookieComment

Sun Java System Web Server session tracking cookie 

Specifies the comment that identifies the session tracking cookie in the cookie file. Applications can provide a more specific comment for the cookie.