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, 2006Based off of one of the iRule 2005 contest 1st place winner, I am now trying to insert yet another cookie from the LTM and base my persistence off of the new cookie that where I also have created a Cookie Hash Persistence Profile
profile persist pr_cookie_hash_irule {
defaults from cookie
mode cookie
mirror enable
cookie mode hash
cookie name ltmcookie
cookie hash offset 6
cookie hash length 3
across services enable
across virtuals enablewhen HTTP_REQUEST {
if { [HTTP::cookie exists "ltmcookie"] }{
HTTP::cookie decrypt "ltmcookie" "ltmcookiepassword"
set vipid [lindex [HTTP::cookie ltmcookie] 0]
set poolid [lindex [HTTP::cookie ltmcookie] 1]
set serverid [lindex [HTTP::cookie ltmcookie] 2]
set portid [lindex [HTTP::cookie ltmcookie] 3]
persist cookie
}
else {
use pool pool_myhttp-pool
}
}
when HTTP_RESPONSE {
HTTP::cookie insert name ltmcookie value [concat [virtual name][LB::server]]
HTTP::cookie encrypt "ltmcookie" "ltmcookiepassword"
}So far I am only seeing persistence based on my fallback of src_addr
This is killing me, anyone want to jump in and help?
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
