Forum Discussion
TechT
Nimbostratus
Jun 17, 2015JSESSION ID and redirect
iRULE1 : I have a VIP which will redirect to specific URI when they see the HTTP Request which works fine and i have an irule for same which is below :
=====
when HTTP_REQUEST {
if { not ([HTTP:...
VernonWells
Employee
Jul 02, 2015Structurally, those should work together. I suspect that, when you perform the transparent rewrite, the server does not set the JSESSIONID for that set of URIs. That is, if a request is made for
http://your.site.com/example/... then JSESSIONID is not set. That would explain why the second iRule does not appear to fire when the first is set. It's trivial to test. Change iRule 2 as follows:
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"]
} else {
log local0. "No JSESSIONID cookie is present in the response"
}
}
Then check /var/log/ltm after making a request.
If my suspicion is correct, then the fix requires a change to the server behavior, rather than BIG-IP (or you could switch to BIG-IP Cookie persistence).
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