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...
unRuleY_95363
Aug 21, 2006Historic F5 Account
Hmmm, I would have thought format would have done it:
when HTTP_RESPONSE {
set addr "10.10.10.10:80"
scan $addr "%u.%u.%u.%u:%u" a b c d e
set cookie "[format %u [expr ($d<<24)|($c<<16)|($b<<8)|$a]].[expr 256*$e].0000"
HTTP::cookie insert name "BIGipServerFP_pool" value $cookie path "/"
}format returns a string representing the number. Scan returns an integer from the string, so with scan you've got two extra integer->string & string->integer conversions going on...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