Forum Discussion
krelm_52303
Nimbostratus
Jun 29, 2007Jsession persist with multiple cookie names
I'm trying to use the recommended method for persisting on JSESSION ID...
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&forumid=5&postid=12143
However, each of my 6 web...
Deb_Allen_18
Jun 29, 2007Historic F5 Account
Not tested, but maybe something along these lines?
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
pull out cookie name by searching thru list for matching pattern
set cname [lindex [HTTP::cookie names] [lsearch [HTTP::cookie names] "server*JSESSIONID"]]
add persistence record if found
if {$cname != ""}{
persist add uie [HTTP::cookie $cname]
set add_persist 0
}
}
when HTTP_REQUEST {
pull out cookie name by searching thru list for matching pattern
set cname [lindex [HTTP::cookie names] [lsearch [HTTP::cookie names] "server*JSESSIONID"]]
then persist on it if found
if {$cname != ""}{
persist uie [HTTP::cookie $cname]
}
}
Let us know if that worked, feel free to post to the codeshare if you find it useful.
/d
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
