Forum Discussion
lunitic_56137
Nimbostratus
Sep 11, 2014Passing a header value to lb to pool
I am trying to load balance traffic according to a server response header value. I think I may be going way too deep into the woods here. Can you help a young Padawan with a direction please?
...
Chris_Wentland
Nimbostratus
Sep 11, 2014To decrypt/encrypt cookies... create values for your cookie name $ckname, and cookie password $ckpass in the client connected event.
when CLIENT_ACCEPTED {
Name for the cookie to be inserted to maintain client session
set ckname
Encryption password to be used for encrypting / decrypting the user session cookie
set ckpass
}
when HTTP_REQUEST {
if {[HTTP::cookie exists $ckname]} {
Decrypt the cookie so we can use the values in it
HTTP::cookie decrypt $ckname $ckpass 128
}
}
when HTTP_RESPONSE {
Set up your cookie details here
Now to encrypt your cookie
HTTP::cookie encrypt $ckname $ckpass 128
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects