Forum Discussion
Jonathan_Chen_4
Aug 18, 2006Historic F5 Account
passive cookie persistence from iRule
Hi,
I am working on a project related to BIG-IP load balancing multiple FirePass using passive cookie persistence. The passive mode requires a special cookie to be put in the server respons...
Aug 18, 2006
Here's some code that will provide the equivalent of the 4.x "b makecookie" command
when HTTP_RESPONSE {
set addr "10.10.10.10:80"
scan $addr "%u.%u.%u.%u:%u" a b c d e
set cookie "[expr ($d<<24)|($c<<16)|($b<<8)|$a].[expr 256*$e].0000"
HTTP::cookie insert name "BIGipServerFP_pool" value $cookie path "/"
}
-Joe
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