Forum Discussion
msullivan_61147
Nimbostratus
Apr 07, 2010Remove persistence for downtime site
I need some help with persistence for our sites.
We are using Weblogic as our app server, so we want to set persistence on a JSESSIONID in a cookie.
I created the following iRule...
Ian_Smith
Apr 09, 2010Ret. Employee
when CLIENT_ACCEPTED {
if { [active_members mypool < 1 } {
set timeout 30
} else {
set timeout 300
}
}
when HTTP_REQUEST {
if { [HTTP::cookie "JSESSIONID"] != "" } {
persist add uie [HTTP::cookie "JSESSIONID"] $timeout
}
}
when LB_SELECTED {
if { [LB::server addr] equals [ip of maint server] } {
if { [HTTP::cookie "JSESSIONID"] != "" } {
persist delete uie [HTTP::cookie "JSESSIONID"]
[HTTP::cookie remove "JSESSIONID"]
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie "JSESSIONID"] != "" } {
persist add uie [HTTP::cookie "JSESSIONID"] $timeout
}
}
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
