Forum Discussion
vasu_95875
Nimbostratus
Jan 07, 2010how to implement session binding
How many ways we can implemement session binding using F5 LTM ?
Java Developer said he wants session binding with JSESSIONID.
1. Do I need to create a IRule to implement ...
vasu_95875
Nimbostratus
Jan 07, 2010I am trying something like this , not sure this will works.
Jsessionid_rule
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JESSIONID"] and $add_persist } {
persist add uie [HTTP::cookie "JESSIONID"]
set add_persist 0
}
}
when HTTP_REQUEST {
if {[HTTP::cookie exists "JESSIONID"]} {
persist uie [HTTP::cookie "JESSIONID"]
}
else {
set jsess [findstr [HTTP::uri] jessionid 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
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