80 lines
4.3 KiB
HTML
80 lines
4.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
|
|
|
|
<title>Administer session tracking for your application server</title>
|
|
</head>
|
|
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
|
|
<h3><a name="appsvrsess"></a>Administer session tracking for your application server</h3>
|
|
|
|
<p>You can use the administrative console and wsadmin to configure session tracking for your application server. In simple terms, an HTTP session consists of all of the HTTP requests from a single browser session. For example, if a user accesses an application and remains connected to the application for 10 minutes before exiting the application, all of the requests that the client makes in that 10 minute period are part of one session. If the user subsequently accesses the application, a new session is created. For more information on sessions, see <a href="../program/ses.htm">Sessions</a> in <em>Application development</em>.</p>
|
|
|
|
<p>The session manager allows to configure several settings for session tracking. These settings change how your application server treats HTTP sessions.</p>
|
|
|
|
<ul>
|
|
<li><a href="#acappsvrsess">Use the administrative console to administer session tracking</a></li>
|
|
<li><a href="#wsaappsvrsess">Use wsadmin to administer session tracking</a></li>
|
|
</ul>
|
|
|
|
<p><strong><a name="acappsvrsess"></a>Use the administrative console to administer session tracking</strong></p>
|
|
<p>To configure session tracking with the administrative console, follow these steps:</p>
|
|
|
|
<ol>
|
|
<li><a href="acstart.htm">Start the administrative console</a>.</li>
|
|
<li>Expand <strong>Servers</strong> and click <strong>Application Servers</strong>.</li>
|
|
<li>Click the name of your application server.</li>
|
|
<li>On the application server's page, click <strong>Web Container</strong>.</li>
|
|
<li>On the Web Container page, click <strong>Session Management</strong>.</li>
|
|
<li>Configure session management settings.</li>
|
|
<li>Click <strong>Apply</strong> or <strong>OK</strong>.</li>
|
|
<li><a href="acsave.htm">Save the application server configuration</a>.</li>
|
|
</ol>
|
|
|
|
<p><strong><a name="wsaappsvrsess"></a>Use wsadmin to administer session tracking</strong></p>
|
|
<p>To configure session tracking with wsadmin, follow these steps:</p>
|
|
|
|
<ol>
|
|
<li><p>On the CL command line, run the STRQSH (Start Qshell) command.</p></li>
|
|
|
|
<li><p>Run the cd command to change to the directory that contains the wsadmin tool:</p>
|
|
<pre>cd /QIBM/ProdData/WebASE/ASE5/bin</pre></li>
|
|
|
|
<li><p><a href="wsarun.htm#start">Start wsadmin</a>.</p></li>
|
|
|
|
<li><p>At the wsadmin prompt, run this command to identify the application server and assign it to the server variable:</p>
|
|
<pre>set server [$AdminConfig getid /Cell:<em>myCell</em>/Node:<em>myNode</em>/Server:<em>myAppSvr</em>/]</pre>
|
|
<p>where <em>myCell</em> is the name of the cell that contains your application server, <em>myNode</em> is the name of the node that contains your application server, and <em>myAppSvr</em> is the name of your application server.</p></li>
|
|
|
|
<li><p>Identify the session manager for the application server and assign it to the smgr variable:</p>
|
|
<pre>set smgr [$AdminConfig list SessionManager $server]</pre></li>
|
|
|
|
<li><p>Modify the attributes for session tracking.</p>
|
|
<ul>
|
|
<li>To enable cookies and modify cookie settings, run this command:
|
|
<pre>$AdminConfig modify $smgr {{enableCookies true}
|
|
{defaultCookieSettings {{maximumAge 10}}}}</pre></li>
|
|
<li>To enable protocol switch rewriting, run this command:
|
|
<pre>$AdminConfig modify $smgr {{enableProtocolSwitchRewriting true}
|
|
{enableUrlRewriting false} {enableSSLTracking false}}</pre></li>
|
|
<li>To enable URL rewriting, run this command:
|
|
<pre>$AdminConfig modify $smgr {{enableUrlRewriting true}
|
|
{enableProtocolSwitchRewriting false} {enableSSLTracking false}}</pre></li>
|
|
<li>To enable SSL tracking, run this command:
|
|
<pre>$AdminConfig modify $smgr {{enableSSLTracking true}
|
|
{enableProtocolSwitchRewriting false} {enableUrlRewriting false}}</pre></li>
|
|
</ul>
|
|
<p><strong>Note:</strong> These commands have been wrapped for display purposes.</p></li>
|
|
|
|
<li><p>Run this command to save your changes:</p>
|
|
<pre>$AdminConfig save</pre></li>
|
|
</ol>
|
|
|
|
</body>
|
|
</html>
|