Forum Discussion
IT_Support_5777
Nimbostratus
Sep 28, 2007Cookie Peristence ASP Session ID
I would like to get some help with the following iRule:
when HTTP_RESPONSE {
if { [HTTP::cookie exists "ASP.NET_SessionId"] } {
persist add uie [HTTP::cookie "ASP.NET_SessionId"]
...
hoolio
Cirrostratus
Oct 03, 2007Here is a pretty concise summary from Unruley:
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&postid=12911
The LB_SELECTED event is only fired when a load-balancing decision is made. And of course, persistence only plays a factor when the load-balancing decision is made.
As a side effect of OneConnect, load-balancing will occur on every request. However, without OneConnect, load-balancing only occurs when the pool changes. Any subsequent requests that happen to go to the same pool will stay connected to the last pool member.
So, you have two ways you can change this behavior: 1) Add OneConnect; 2) at the beginning of HTTP_REQUEST call LB::detach.
Aaron
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
