Forum Discussion
how to setup persistence to concatenate jvmRoute with JSESSIONID to generate final SESSIONID
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
- sirwinstonMar 10, 2017
Nimbostratus
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.
- riyer_206339Mar 10, 2017
Nimbostratus
Thanks for quick response, Winston!
I'll implement the above iRule without [HTTP::cookie "jvmRoute"] and post the results. Out tomcat instance already has jvmRoute configured in server.xml file.
Regards, Ram
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
