ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/admin/appsess.htm

98 lines
4.9 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!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</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="appsess"></a>Administer session tracking for your application</h4>
<p>Applications use sessions to associate HTTP requests from a single client. Session management settings determine how your application manages HTTP sessions.</p>
<p>You can configure session management for an application if you want that application to use different session management settings from the other settings for your application server. Settings for the application take precedence over settings for the application server.</p>
<p>You can use the administrative console and wsadmin to configure session tracking for your application.</p>
<ul>
<li><a href="#acappsess">Use the administrative console administer session tracking for your application</a></li>
<li><a href="#wsaappsess">Use wsadmin to administer session tracking for your application</a></li>
</ul>
<p><strong><a name="acappsess">Use the administrative console administer session tracking for your application</a></strong></p>
<ol>
<li><a href="acstart.htm">Start the administrative console</a>.</li>
<li>Expand <strong>Applications</strong> and click <strong>Enterprise Applications</strong>.</li>
<li>Click the name of the application for which you want to manage session tracking.</li>
<li>On the application's 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="wsaappsess">Use wsadmin to administer session tracking for your application</a></strong></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 deployment configuration object for the application and assign it to the deployment variable:</p>
<pre>set deployment [$AdminConfig getid /Deployment:<em>myApp</em>/]</pre>
<p>where <em>myApp</em> is the name of the application for which you want to configure session managmement.</p></li>
<li><p>Run this command to retrieve the applicaton deployment and assign it to the appDeploy variable:</p>
<pre>set appDeploy [$AdminConfig showAttribute $deployment deployedObject]</pre></li>
<li><p>Run the attributes command to obtain a list of attributes you can set for session manager, use the attributes command:</p>
<pre>$AdminConfig attributes SessionManager</pre>
<p>The command displays this output:</p>
<pre>&quot;accessSessionOnTimeout Boolean&quot;
&quot;allowSerializedSessionAccess Boolean&quot;
&quot;context ServiceContext@&quot;
&quot;defaultCookieSettings Cookie&quot;
&quot;enable Boolean&quot;
&quot;enableCookies Boolean&quot;
&quot;enableProtocolSwitchRewriting Boolean&quot;
&quot;enableSSLTracking Boolean&quot;
&quot;enableSecurityIntegration Boolean&quot;
&quot;enableUrlRewriting Boolean&quot;
&quot;maxWaitTime Integer&quot;
&quot;properties Property(TypedProperty)*&quot;
&quot;sessionDRSPersistence DRSSettings&quot;
&quot;sessionDatabasePersistence SessionDatabasePersistence&quot;
&quot;sessionPersistenceMode ENUM(DATABASE, DATA_REPLICATION, NONE)&quot;
&quot;tuningParams TuningParams&quot;</pre>
<p><strong>Notes:</strong></p>
<ul>
<li>The sessionDRSPersistence attribute is not supported in WebSphere Application Server - Express.</li>
<li>In WebSphere Application Server - Express, the only supported value for sessionPersistenceMode is NONE.</li>
</ul></li>
<li><p>Run these commands to set the attributes for the session manager for your application:</p>
<pre>set attr1 [list enableSecurityIntegration true]
set attr2 [list maxWaitTime 30]
set attr3 [list sessionPersistenceMode NONE]
set attrs [list $attr1 $attr2 $attr3]
set sessionMgr [list sessionManagement $attrs]</pre>
<p>You can modify the example to set other attributes of session manager including the nested attributes in Cookie, DRSSettings, SessionDataPersistence, and TuningParms object types. To list the attributes for those object types, use the attribute command in AdminConfig object.</p></li>
<li><p>Run this command to create the session manager for the application:</p>
<pre>$AdminConfig create ApplicationConfig $appDeploy [list $sessionMgr]</pre></li>
<li><p>Run this command to save your changes:</p>
<pre>$AdminConfig save</pre></li>
</ol>
</body>
</html>