Forum Discussion
marlon_Gino-gi1
Nimbostratus
Jan 13, 2007irule based on JSESSIONID cookie
hello Guys,
Im quite new with Irules, would just like to know how the irules below works.As per my understading the rules below will apply persistence if the JSESSIONID cookie exist. i would...
AaronJB
SIRT
Jan 13, 2007The key there is the HTTP_REQUEST event code;
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
If the client connects without any JSESSIONID set (either as a cookie or as a URI parameter) then the rule will fall through without setting any actions - and in that case the user will be loadbalanced as per normal, using whatever algorithm you have set in the LTM pool.
Aaron
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