Forum Discussion
quickref_74249
Nimbostratus
Nov 23, 2011ASP stickiness with multiple cookies
Hi, i know that there's is already a codeshare example for this kind of stickiness but i need an extension and i don't know how to set up the rule.
I set up the following IRule:
when HTTP_R...
nitass
Employee
Nov 23, 2011can you try this? anyway, sorry i have not yet tested it.
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set SessionId [HTTP::cookie ASP.NET_SessionId]
log local0. "Request SessionId is: $SessionId"
if {$SessionId != ""} {persist uie $SessionId}
}
when HTTP_RESPONSE {
foreach acookie [HTTP::header values "Set-Cookie"] {
set SessionId [findstr $acookie "ASP.NET_SessionId" 18 24]
log local0. "Response SessionId is: $SessionId"
if {$SessionId != ""}{persist add uie $SessionId}
}
}
}
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