在was 7 ND版 + Ibm Http Server 中 Session affinity(即Session sticky)默认是支持的,如果是Base版WAS,则需要配置一下HttpSessionCloneID 参数,以支持Session Affinity 正常工作:
具体如下:
Configure a unique HTTP session clone ID for each application server. You must complete this step if you require session affinity.
You can configure a unique HTTP session clone ID using wsadmin scripting or the administrative console. To use wsadmin commands for the Jython or Jacl programming language, see the documentation on configuring a unique HTTP session clone ID for each application server using scripting. To configure a unique HTTP session clone ID using the administrative console, complete the following steps:
具体如下:
Configure a unique HTTP session clone ID for each application server. You must complete this step if you require session affinity.
You can configure a unique HTTP session clone ID using wsadmin scripting or the administrative console. To use wsadmin commands for the Jython or Jacl programming language, see the documentation on configuring a unique HTTP session clone ID for each application server using scripting. To configure a unique HTTP session clone ID using the administrative console, complete the following steps:
- Expand Servers > Server Types and click WebSphere application servers > server_name.
- Under Container Settings, expand Web Container Settings, and click Web container.
- Under Additional Properties, click Custom properties > New .
- In the Name field, enter HttpSessionCloneId.
- In the Value field, enter a unique value for the server. The unique value must be 8 - 9 alphanumeric characters; for example, test1234
- Click Apply or OK.
- Click Save to save the configuration changes to the master configuration.