beautypg.com

Example 1: setting the cookie location – Nortel Networks WEB OS 212777 User Manual

Page 433

background image

Web OS 10.0 Application Guide

Chapter 16: Persistence

n

433

212777-A, February 2002

Example 1: Setting the Cookie Location

In this example, the client request has two different cookies labeled “UID.” One exists in the
HTTP header and the other appears in the URI:

GET /product/switch/UID=12345678;ck=1234

...

Host: www.alteonwebsystems.com

Cookie: UID=87654321

n

Look for the cookie in the HTTP header

The last parameter in this command answers the “

Look for cookie in URI?

prompt. If you set this parameter to

disable

, the Web switch will use

UID=87654321

as the cookie.

n

Look for the cookie in the URI

The last “Look for cookie in URI?” parameter is set to

enable

. Therefore the Web

switch will use

UID=12345678

as the cookie.

>> # /cfg/slb/virt 1/service 80/pbind cookie passive UID 1 8 dis

>> # /cfg/slb/virt 1/service 80/pbind cookie passive UID 1 8 ena