Brad_Wood_7735
Apr 23, 2007Historic F5 Account
.net session id
This is an interesting one. I have a .net application that i am trying to persist on .net session ID. I am capuring it and it perists ok, but the issue is that on inital connection the LTM is LB to both nodes prior to the .net session being set. I don't want to use source addy perst. because this is Natted. The application is pulling an image, which is being requested from the other server in the pool. What is a good way for me to make this persist from the first connect, but not use source addy.
Here is the Irule as it sits.
when HTTP_REQUEST {
set SessionId [HTTP::cookie ASP.NET_SessionId]
log local0. "Request SessionId is: $SessionId"
if { $SessionId != "" } { persist uie $SessionId }
}
when HTTP_RESPONSE {
set SessionId [findstr [HTTP::header Set-Cookie] "ASP.NET_SessionId" 18 24]
log local0. "Response SessionId is: $SessionId"
if { $SessionId != "" }{ persist add uie $SessionId }
}