Forum Discussion
Andrea_Knapp_28
Nimbostratus
Mar 12, 2008Session intermixing issue - due to Cookie not being sent every call?
we are currently having issues with our v9.3 implementation when we go into production we have session intermixing issues with users who are behind a proxy. Tech Support has stated that there is a di...
hoolio
Cirrostratus
Mar 12, 2008I suppose anything is possible. This poster (Click here) found their issue was fixed by setting the cookie on every response.
Here is a cleaned up version which saves the cookie in the request and inserts it if the response doesn't already contain a persistence cookie. I didn't test it, but it looks right.
Can you give this a shot?
Aaron
when HTTP_REQUEST {
Determine the persistence cookie name.
This assumes it hasn't been customized in the persistence profile.
If it has been customized, just hardcode the name here instead.
set persist_cookie_name BIGipServer[LB::server pool]
Save persistence cookie value if it exists in the request
if {[HTTP::cookie exists $persist_cookie_name]} {
If the persistence cookie is present in the request, save the value
set old_cookie_value [HTTP::cookie value BIGipServer$pool_name]
}
}
when HTTP_RESPONSE {
If the response doesn't already have a persistence cookie and the request did, insert the value from the request
if {not ([HTTP::cookie exists $persist_cookie_name]) and [info exists old_cookie_value]}{
HTTP::cookie insert name $persist_cookie_name value $old_cookie_value
}
}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