Donovan_Price_1
Mar 25, 2010Nimbostratus
Irule 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.