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 21, 2006
One more try. The expr will result in a signed long and you probably want the unsigned value. Wrapping the expr with a scan should do the trick:
when HTTP_RESPONSE {
set addr "10.10.10.10:80"
scan $addr "%u.%u.%u.%u:%u" a b c d e
set cookie "[scan [expr ($d<<24)|($c<<16)|($b<<8)|$a] %u].[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