Forum Discussion
Tuomas_Jormola_
Nimbostratus
Apr 17, 2008Strange things happening while attempting universal persistence using JSESSIONID
Hi,
I'm setting up a Java web application behind a pair of F5 BIG-IP LTMs
running operating system version 9.3.1. The application is hosted on
a cluster of machines running Resin servlet conta...
Andy_Herrman_22
Nimbostratus
Apr 24, 2008Sounds like you got it working, but I think I saw a bug in your iRule that could cause some problems later on.
To get the session ID out of the URL you use the following:
set uri_id [findstr $uri "jsessionid=" 11 "?"]This will get the string after "jsessionid=' until a "?" is found. However, URL parameters are delimited by a "&", not a "?". So, if you have a url like this:http://somedomain.com/some/path?jsessionid=MYSESSIONID
it'll work fine, but if you have this:http://somedomain.com/some/path?jsessionid=MYSESSIONID&someotherparam=FOOBAR
it won't work, as the jsessionid string you get back will end up being "MYSESSIONID&someotherparam=FOOBAR"
If your application doesn't use other query params, or always puts jsessionid as the last query param then it will work, but if any other params are put after jsessionid then you'll get the wrong value.
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