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...
Gilles_Marec_33
Nimbostratus
Jul 24, 2005Thanks, so I will try this
-------------------------------------------------------------
rule PHPPersist {
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "PHPSESSID"] and $add_persist } {
persist add uie [HTTP::cookie "PHPSESSID"]
set add_persist 0
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "PHPSESSID"] } {
persist uie [HTTP::cookie "PHPSESSID"]
} else {
set phpsess [findstr [HTTP::uri] "PHPSESSID" 11 ";"]
if { $phpsess != "" } {
persist uie $phpsess
}
}
}
}
--------------------------------------------------------------------
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