Forum Discussion
mpromny_136509
Dec 11, 2013Nimbostratus
How LTM attaches information about node to JSessionsID ?
Hi all,
I'd like to ask whether you could explain me how LTM attaches information about node to JSessionsID used in cookie.
Introduction:
we have pool SRV_POOL: -SRV1 10.10.10.1 -SR...
mpromny_136509
Dec 16, 2013Nimbostratus
Hi Christian,
We have universal and cookie because:
iRULE - uie
virtual - cookie
Virtual server configuration:
ltm virtual PI-SSL {
destination 10.59.20.10:https
fallback-persistence PI_Tomcat-src
ip-protocol tcp
mask 255.255.255.255
persist {
PI_COOKIE {
default yes
}
}
pool SRV_POOL
profiles {
PI-HTTPS-NEW.app/PI-HTTPS-NEW_http_profile { }
PI-HTTPS-NEW.app/PI-HTTPS-NEW_lan-optimized_tcp_profile {
context serverside
}
PI-HTTPS-NEW.app/PI-HTTPS-NEW_oneconnect { }
PI-HTTPS-NEW.app/PI-HTTPS-NEW_wan-optimized_tcp_profile {
context clientside
}
PI-requestLog { }
PI_SSL {
context clientside
}
analytics { }
}
rules {
PI_X-Forward
PI_JSESSION_ID
}
snat automap
source-port change
vlans-disabled
}
IRULE:
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"] 500
} else {
set jsess [findstr [HTTP::uri] "JSESSIONID" 11 ";"]
if { $jsess != "" } {
persist uie $jsess 500
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"] 500
}
}
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