Forum Discussion
Donovan_Price_1
Nimbostratus
Mar 25, 2010Irule for Universal Persistance Using a Header Value
Hi
I have created the Irule that reads the value of MySessionId from the header I have removed the logging entries from below to make it simpler what I see is the following: the MySessionID is read successfully and is visible in the Stats Persistence Universal. However the users are not being stuck. I have confirmed the Sticky configuration is configured correctly so I guess the issue must be in my irule below. Also what is the max length value that can be in "MySessionId" and can it be negative.
when HTTP_REQUEST {
set Sid [HTTP::header value "MySessionId"]
if { $Sid != "" }{
set value [persist lookup uie $Sid]
if { $value != ""}
{
persist uie $Sid
}
else
{
persist uie $Sid
}
}
}
Thanks.
- Donovan_Price_1
Nimbostratus
Sorry should of attached the below. - L4L7_53191
Nimbostratus
That mask isn't really an issue here, and is probably what you'll need to meet your requirements. It basically means you'll do a little less multiplexing, but you'll get your persistence to work. It'll still help your connection management, but not as much as with the default mask of 0.0.0.0. Personally, I'd like to see it default to 255.255.255.255 anyhow, as this solves a bunch of common issues right away. - Donovan_Price_1
Nimbostratus
Thanks Matt - hoolio
Cirrostratus
Hi Don,when HTTP_REQUEST { set Sid [HTTP::header value "MySessionId"] log local0. "[IP::client_addr]:[TCP::client_port]: \$Sid: $Sid" if { $Sid != "" }{ set value [persist lookup uie $Sid] log local0. "[IP::client_addr]:[TCP::client_port]: \$value: $value" if { $value != ""}{ persist uie $Sid } } } when PERSIST_DOWN { log local0. "[IP::client_addr]:[TCP::client_port]" } when SERVER_CONNECTED { log local0. "[IP::client_addr]:[TCP::client_port]: [IP::server_addr]:[TCP::server_port]" }
- Donovan_Price_1
Nimbostratus
Hi
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