Using domain session cookies for virtual host single sign-on
You can use domain cookies to support single sign-on and the sharing of a single credential across multiple virtual host junctions in the same WebSEAL instance.
About this task
WebSEAL normally uses host cookies for cookie-based session identification. A browser returns a host cookie to the originating host only. Using host cookies in a virtual host environment results in each virtual host that has its own login and credentials.
Use domain cookies if all virtual hosts are on the same WebSEAL instance and contain the same network domain name.
Alternatively, you can configure a distributed session cache environment to support single sign-on across multiple virtual hosts. In a distributed session cache environment, the session can be distributed between different WebSEAL instances.
In an environment without the distributed session cache,
you must set another configuration item for WebSEAL. Set another configuration
to handle single sign-on across virtual host junctions in the same
WebSEAL instance. The shared-domain-cookie configuration
item in the [session] stanza of the WebSEAL configuration
file must be set to yes. You do not need to use this
configuration item in a distributed session cache environment. In
a distributed session cache environment, this item must be set to no or
not defined at all.
Both standard WebSEAL junctions and virtual host junctions can support domain cookies:
- The domain that is used by the session cookie for a specific virtual host junction is determined by the closest match to an entry in the [session-cookie-domains] stanza.
- The domain that is used by the session cookie for a specific standard WebSEAL junction is determined by the closest match to the value of the web-host-name entry in the [server] stanza.
If there is no match, then a host type cookie is used.
Other instances of WebSEAL in the same domain also receive the same domain cookies that are configured for a particular WebSEAL instance. You can customize the names of the WebSEAL session cookies for a specific WebSEAL instance. The WebSEAL instance configuration file provides default names for both TCP and SSL cookies:
[session]
tcp-session-cookie-name = PD-H-SESSION-ID
ssl-session-cookie-name = PD-S-SESSION-ID
Procedure
[session-cookie-domains]
domain = ibm.com
domain = cruz.tivoli.comExample
Matching example:
[session-cookie-domains]
domain = ibm.com
domain = tivoli.com