Session tracking

 


Overview

The following example configures the session management of a Web container for session tracking:

  1. Identify the serverid.

    set serverid [$AdminConfig getid /Cell:cellname/Node:nodename/Server:servername/]

  2. Identify the SessionManager id

    set smgr [$AdminConfig list SessionManager $server]

  3. Enable cookies:

    $AdminConfig modify $smgr {{enableCookies true} {defaultCookieSet {{maximumAge 10}}}}

  4. Enable protocol switch rewriting:

    $AdminConfig modify $smgr {{enableProtocolSwitchRewriting true} {enableUrlRewriting false} {enableSSLTracking false}}

  5. Enable URL rewriting:

    $AdminConfig modify $smgr {{enableUrlRewriting true} {enableProtocolSwitchRewriting false} {enableSSLTracking false}}

  6. Enable SSL tracking:

    $AdminConfig modify $smgr {{enableSSLTracking true} {enableProtocolSwitchRewriting false} {enableUrlRewriting false}}

  7. Save changes:

    $AdminConfig save