Forum Discussion
Alex_Pozzan_325
Nimbostratus
Dec 04, 2008iRule for AJP
Is there a way to write an iRule to recognize jsessionid inside a tcp packet?
2 Replies
- hoolio
Cirrostratus
Hi Alex,
If you add an HTTP profile to the virtual server you can parse the HTTP headers and data using HTTP:: commands. If the jsessiondid is in the HTTP URI, you can use HTTP::uri to get to it. If it's in a cookie, you can use HTTP::cookie. If it's in the payload, you'd need to buffer the payload using HTTP::collect.
You can get more info on the various command in the iRule wiki (Click here). There are also some Codeshare rules which use the jsessionid (Click here).
If you have more specific questions, let us know.
Aaron - VINCENT_LAVERGNHistoric F5 AccountHi,
Here is an example where I did actually persist on the SessionID contained in the AJP
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=33541&view=topic
Vincent
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