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...
Steven_Ruby_872
Nimbostratus
Jan 13, 2006here is where i am now.
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 11]
if { $jsess != "" } {
log local0. "Entering REQUEST, jsess is: $jsess"
persist uie $jsess
}
}
when HTTP_RESPONSE {
set cookie [HTTP::cookie "JSESSIONID"]
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"]
log local0. "Request received: $cookie"
}
}
here are the logs:
Jan 13 12:07:37 tmm tmm[720]: Rule fmsjessionid : Request received: 20F7EFC482475B8E8A622EB5462C4932
Jan 13 12:07:37 tmm tmm[720]: Rule fmsjessionid : Entering REQUEST, jsess is: 20F7EFC482475B8E8A622EB5462C4932
Jan 13 12:07:51 tmm tmm[720]: Rule fmsjessionid : Request received: 92D0B71F1870A101508225A86763BC4E
you see the first 2 have the same jsessionid and then once in the application it hops over to the other server and a new cookie is giving out.
the persistence is setup as you see here:
Mode: universal Value: 20F7EFC482475B8E8A622EB5462C4932
Virtual: vip:https Node: node:https Age: 143sec
sr
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