Forum Discussion
Steven_Ruby_872
Nimbostratus
Dec 29, 2005jsession iRule and how to make http profile work
http://webserver/APP/x/goLogin;jsessionid=99EF9DBBA561A788043EF8A8D5FB20A5
does anyone have an iRule that would match this?
the current iRule i am using which i found on devcentral does not seem to work with the default http profile i am using. I see the traffic at the webservers yet the client never receives anything back thus the page never loads.
rule jsessionid {
when HTTP_REQUEST {
set uri [HTTP::uri]
set jsess [findstr $uri "jsessionid" 13 ")"]
log local0. "Entering REQUEST, jsess is: $jsess"
if { $jsess != "" } {
persist uie $jsess
}
}
when HTTP_RESPONSE {
if { [findstr $uri "jsessionid"] } {
set jsess1 [findstr $uri "jsessionid" 13 ")"]
log local0. "jsessionid found, jsess is: $jsess1"
persist add uie $jsess1
}
}
}
PROFILE fms HTTP parent: http
| virtual servers: fms.staging.wni.com
| requests (total, max, GET, POST) = (5, 1, 0, 0)
| requests (v0.9, v1.0, v1.1) = (5, 0, 0)
| responses (v0.9, v1.0, v1.1) = (0, 0, 0)
| responses (2xx, 3xx, 4xx, 5xx) = (0, 0, 0, 0)
| response size ( <1k, 1-4k, 4-16k, 16-32k, 32-64k)
| ( 0, 0, 0, 0, 0)
| Set-Cookie header insertions = 0
| adaptive parsing (2xx, 3xx) = (0, 0)
| compression: disabled
sr
- Colin_Walker_12Historic F5 AccountWell, the first thing that I would note is that you shouldn't need an HTTP_RESPONSE section. The persistence is set when the request is sent to the server. Once that is determined, the rest of that connection will continue to persist, as will any new connections with the information matching the persistence record which is, in this case, the jsessionid.
- Steven_Ruby_872
Nimbostratus
I am pretty sure the iRule will work, the problem i am having is that when i use the default http profile, the client never receives anything back. - Steven_Ruby_872
Nimbostratus
i have used the following irule - Steven_Ruby_872
Nimbostratus
here is where i am now.
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