uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.7.4 Deleting invalid session IDs maintained by the Web client

The invalid session IDs stored by a Web client will be deleted with Application Server. As a result, the sending of invalid session ID from Web clients is controlled.

If the HTTP session is disabled or if an HTTP session containing an invalid session ID is received, the HTTP Cookie used for deleting the HTTP Cookie information showing the invalid session ID with the Web container is added to the HTTP response header. As a result, the invalid session ID is deleted.

The HTTP Cookie used for deleting the HTTP Cookie information showing the invalid session ID indicates the HTTP Cookie that fulfills all the following conditions:

The HTTP Cookie used for deleting the HTTP Cookie information showing the invalid session ID is added to the HTTP response header in the following cases:

The following are the description for each case:

Precautions for using the Web server integration functionality
If the response status code is 304 (Not Modified), the Set-Cookie header might be deleted in the Web server specifications. At this time, the HTTP Cookie used for deleting the HTTP Cookie information showing the invalid session ID is also not added, therefore, you cannot delete the invalid session IDs maintained by the Web client.
Organization of this subsection
(1) When the HTTP session is disabled
(2) When a session ID that does not exist in the J2EE server is received
(3) Notes on deleting invalid session IDs maintained by the Web client

(1) When the HTTP session is disabled

When all the following conditions are fulfilled, the HTTP Cookie used for deleting the HTTP Cookie information showing the invalid session ID is added to the HTTP response header:

Note that when one of the following conditions are fulfilled and even if the HTTP session is disabled, the HTTP Cookie used for deleting the HTTP Cookie information showing the invalid session ID is not added:

These functions are provided to maintain compatibility with previous versions.

(2) When a session ID that does not exist in the J2EE server is received

When all the following conditions are fulfilled, it is determined that an invalid session ID is received and the HTTP Cookie used for deleting the HTTP Cookie information showing the invalid session ID is added to the HTTP response header:

(3) Notes on deleting invalid session IDs maintained by the Web client

In a configuration in which requests with the same path are handled in multiple J2EE servers, disable this functionality.

If you handle requests with the same path in which the Path of the Cookie has been rewritten using reverse proxy, the HTTP session might be deleted inappropriately.