uCosminexus Application Server, Web Container Functionality Guide
This section gives the details on how to manage a session and the session ID management.
Specify details about how to manage a session of a Web container, in the tracking mode. There are two types of tracking mode; a mode using an HTTP Cookie and a mode using the URL rewrite. You can choose to use either one or both of the tracking modes.
The session ID is managed as an HTTP Cookie. You can attach the HttpOnly property to the HTTP Cookie.
When a new HTTP session is created, an HTTP Cookie indicating the session ID is added to the HTTP response header. The name of the HTTP Cookie indicating the session ID is JSESSIONID. You can change the Cookie name if you are using Application Server 09-00 or later. Note that if the created HTTP session is disabled before commit, the HTTP Cookie is not added.
The session ID is managed as a URL path parameter.
The name of the URL path parameter indicating the session ID is jsessionid. You can change the name if you are using Application Server of 09-00 or later. The session ID is added in the format ;jsessionid= session ID at the end of the URL path, when the URL is rewritten by the Web container.
The URL path has a hierarchical structure and includes a value used for identifying resources. A query and fragment is not included in the URL path. Therefore, when these elements are included in the URL, the session ID is added immediately after the query or fragment. Also, if a path parameter other than the session ID is included in the URL, the path parameter indicating the session ID is added at the end of the path parameter included in the URL.
Table 2-28 URL string length increased by URL rewrite
Functionality usage status | Increases URL string length (unit: string length) |
---|---|
When the redirector-based load balancing functionality or server ID addition functionality is not used | 44# |
When the redirector-based load balancing functionality is used | 44# + 1 (string-length-of-period) + string-length-of-worker-name |
When the server ID addition functionality is used (when the redirector-based load balancing functionality is not used) | 44# + string-length-of-server-ID |
When the database session failover functionality (when completeness guarantee mode is disabled) or EADs session failover functionality is used | 44# + characters count of server ID + 16 (alphanumeric character count) |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.