Forum Discussion
Gilles_Marec_33
Nimbostratus
Jul 22, 2005Cookie Persistence
Hi,
I need to set cookie persistence for website with 8 nodes
Currently we are using Cookie Hash, but it seems to fail.
Here is our mechanism :
A customer conne...
david_wang_2073
Jul 23, 2005Historic F5 Account
perhaps you can make reference to this one:
rule WeblogicJSessionPersist {
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {
persist add uie [HTTP::cookie "JSESSIONID"]
set add_persist 0
}
}
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
}
}
}
by replacing JSESSIONID with PHPSESSID and change [findstr [HTTP::uri] "jsessionid" 11 ";"] to [findstr [HTTP::uri] "PHPSESSID" 10 ";"]
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