Forum Discussion
zafer
Nimbostratus
Oct 22, 2008.net persistence issue
Hello
here is my traffic flow
client --> ssl vpn-> Bigip vip-> webserver
the customer use .net application and i try to get aspsessionid and persist it with this code (cookie based)
http://devcentral.f5.com/wiki/default.aspx/iRules/ASP_SessionID_Persistence.html
i can see f5 get sessionid's and add age correctly but LB not working properly, some times i can see f5 load balance connection to each server but sometimes not!!
i cleared all persistence records (b persist all delete) and connections (b conn all delete)
then i tested 5 new client machine each clients load balanced to same server
What can be problem , why this irule interest client ip and port ?
i didnt understand two lines in this code it start "debug"
when HTTP_REQUEST {
set cli [IP::remote_addr]:[TCP::remote_port]
set SessionId [HTTP::cookie ASP.NET_SessionId]
if {$::debug}{log local0. "Client: $cli Request SessionId: >$SessionId<"}
if { $SessionId != "" } { persist uie $SessionId 1800 }
}
when LB_SELECTED {
if {$::debug}{log local0. "Client: $cli LB to: [LB::server addr]"}
}
regards
zafer
- hoolio
Cirrostratus
Hi Zafer,when RULE_INIT { set ::debug 0 } when HTTP_REQUEST { set cli [IP::remote_addr]:[TCP::remote_port] set SessionId [HTTP::cookie ASP.NET_SessionId] if {$::debug}{log local0. "Client: $cli Request SessionId: >$SessionId<"} if { $SessionId != "" } { persist uie $SessionId 1800 } } when LB_SELECTED { if {$::debug}{log local0. "Client: $cli LB to: [LB::server addr]"} } when HTTP_RESPONSE { set SessionId [HTTP::cookie ASP.NET_SessionId] if {$::debug}{log local0. "Client: $cli Response SessionId: >$SessionId<"} if { $SessionId != "" }{ persist add uie $SessionId 1800 } }
- zafer
Nimbostratus
Hi, - hoolio
Cirrostratus
Hi Zafer, - zafer
Nimbostratus
Hi Aaron,
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