Cisco CSS 11501 Getting Started Guide - Page 81

Sticky Based on a Cookie in a URL

Page 81 highlights

Chapter 4 Configuring Sticky Cookies Advanced Load-Balancing Method Using Cookies service test4 ip address 10.1.1.4 string server4 active !The string prefix must match the cookie name. We recommend that you include the '=' as part of the string prefix OWNER owner test content stickyCookie advanced-balance cookies string prefix "MyCookie=" add service test1 add service test2 add service test3 add service test4 port 80 protocol tcp active Sticky Based on a Cookie in a URL If the cookie is present in the URL instead of the cookie field of the HTTP header, use the advanced-balance url command. Some client applications do not accept cookies. When a site depends upon the information in the cookie, administrators sometimes modify the server application so that it appends the cookie data to the parameters section of the URL. The parameters typically follow a "?" at the end of the main data section of the URL. In this configuration, the CSS functions in a similar manner as when using the advanced-balance cookies command; however, the CSS looks in the URL after the '?' for the cookie. Using the full configuration of the "Sticky Based on a Configured String in an HTTP Cookie Header" section, the only difference is the advanced-balance url command in the content rule. OWNER owner test content stickyCookie advanced-balance url OL-6037-01 Cisco Content Services Switch Getting Started Guide 4-5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142

4-5
Cisco Content Services Switch Getting Started Guide
OL-6037-01
Chapter 4
Configuring Sticky Cookies
Advanced Load-Balancing Method Using Cookies
service test4
ip address 10.1.1.4
string server4
active
!The string prefix must match the cookie name.
We recommend that you
include the ‘=’ as part of the string prefix.
!*************************** OWNER ***************************
owner test
content stickyCookie
advanced-balance cookies
string prefix "MyCookie="
add service test1
add service test2
add service test3
add service test4
port 80
protocol tcp
active
Sticky Based on a Cookie in a URL
If the cookie is present in the URL instead of the cookie field of the HTTP header,
use the
advanced-balance url
command. Some client applications do not accept
cookies. When a site depends upon the information in the cookie, administrators
sometimes modify the server application so that it appends the cookie data to the
parameters section of the URL. The parameters typically follow a “?” at the end
of the main data section of the URL.
In this configuration, the CSS functions in a similar manner as when using the
advanced-balance cookies
command; however, the CSS looks in the URL after
the ‘?’ for the cookie.
Using the full configuration of the
“Sticky Based on a Configured String in an
HTTP Cookie Header”
section, the only difference is the
advanced-balance url
command in the content rule.
!*************************** OWNER ***************************
owner test
content stickyCookie
advanced-balance url