Forum Discussion
Leslie_South_55
Nimbostratus
Nov 06, 2006Persist with multiple cookies
I have posted this question in an older thread, but I thought I would start a new one to see if I can get any bites.
I have the need to persist to weblogic servers using 1 of any 5 cookies, includ...
Leslie_South_55
Nimbostratus
Nov 07, 2006Here is what I have so far
when HTTP_REQUEST {
if { [HTTP::uri] contains "/ISS_Static/" } {
pool pool_my-http-pool}
log local0. "Sending static request to pool $poolid, member $serverid, port $portid"
}
when HTTP_RESPONSE {
HTTP::cookie insert name ltmcookie value [LB::server]
HTTP::cookie encrypt "ltmcookie" "ltmcookiepassword"
elseif {
when HTTP_REQUEST {
if { [HTTP::cookie exists "ltmcookie"] }{
HTTP::cookie decrypt "ltmcookie" "ltmcookiepassword"
set poolid [lindex [HTTP::cookie ltmcookie] 0]
set serverid [lindex [HTTP::cookie ltmcookie] 1]
set portid [lindex [HTTP::cookie ltmcookie] 2]
pool $poolid member $serverid $portid
persist cookie
log local0. "Sending cookie request to pool $poolid, member $serverid, port $portid"
}
}
}
else {
pool pool_my-http-pool
}
}I get the following error
line 8: [wrong args] [HTTP::cookie encrypt "ltmcookie" "ltmcookiepassword"
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
