Forum Discussion
krelm_52303
Nimbostratus
Jun 29, 2007Jsession persist with multiple cookie names
I'm trying to use the recommended method for persisting on JSESSION ID...
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&forumid=5&postid=12143
However, each of my 6 web...
krelm_52303
Nimbostratus
Jul 09, 2007Hi Deb,
Thanks for the detailed reply. Sorry it's taken a while to respond.
As per your suggestions , I have managed to convince our web server admin to remove the host prefix from all servers in the pool, so we now have the same JSESSION cookie name for all servers. :D
I wasn't sure where to remove the flag logic - this concern still applies to the single-cookie-name irule - correct?
So ultimately, the servers now have same cookie name, I have applied "reject on service down" for the relevent pool, and have set up a new Persistence Profile Hash, which specifies the timeout value and the simplified irule (below).
I'll let you know how testing goes.
Thanks again!
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {
persist add uie [HTTP::cookie "JSESSIONID"]
set add_persist 0
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
}
}
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
