Forum Discussion
riyer_206339
Nimbostratus
Hi All,
We have similar requirement i.e. to persist at BIG-IP level in this pattern "JSESSIONID.jvmRoute". I would like to know if this iRule below would help us in achieving that goal.
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"][HTTP::cookie "jvmRoute"]
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"][HTTP::cookie "jvmRoute"]
}
}
Regards, Ram
sirwinston
Mar 10, 2017Nimbostratus
Hi Ram,
As I indicated Tomcat appends the jvmRoute to the JSESSIONID. Tomcat does not set a separate jvmRoute cookie so [HTTP::cookie "jvmRoute"] will always return an empty string.
Bottom line is that the standard JSESSIONID irule should work fine.
Rgds,
W.