Session tracking
Overview
The following example configures the session management of a Web container for session tracking:
- Identify the serverid.
set serverid [$AdminConfig getid /Cell:cellname/Node:nodename/Server:servername/]- Identify the SessionManager id
set smgr [$AdminConfig list SessionManager $server]- Enable cookies:
$AdminConfig modify $smgr {{enableCookies true} {defaultCookieSet {{maximumAge 10}}}}- Enable protocol switch rewriting:
$AdminConfig modify $smgr {{enableProtocolSwitchRewriting true} {enableUrlRewriting false} {enableSSLTracking false}}- Enable URL rewriting:
$AdminConfig modify $smgr {{enableUrlRewriting true} {enableProtocolSwitchRewriting false} {enableSSLTracking false}}- Enable SSL tracking:
$AdminConfig modify $smgr {{enableSSLTracking true} {enableProtocolSwitchRewriting false} {enableUrlRewriting false}}- Save changes:
$AdminConfig save