Julian_Grunnell
Jun 13, 2007Nimbostratus
Cookie Rewrite & ASPSESSIONID Mk. II
Hi - well looks like my previous post got foobar'd somehow. Anyway thanks to willms & hoolio for their valuable input!!
I amended willms iRule slightly to:
when HTTP_RESPONSE {
set ASPID [findstr [HTTP::cookie names] "ASPSESSIONID" 0 20]
set debug "1"
if { $ASPID ne "" } {
if $debug {log local0. "ASPSESSIONID FOUND $ASPID"}
}
else {
if $debug {log local0. "ASPSESSIONID NOT FOUND"}
}
}
And the ltm log showed:
Jun 13 09:37:02 tmm tmm[952]: Rule ASPTEST : ASPSESSIONID NOT FOUND
Jun 13 09:37:02 tmm tmm[952]: Rule ASPTEST : ASPSESSIONID NOT FOUND
Jun 13 09:37:03 tmm tmm[952]: Rule ASPTEST : ASPSESSIONID FOUND ASPSESSIONIDCCDATSAB
Jun 13 09:37:03 tmm tmm[952]: Rule ASPTEST : ASPSESSIONID FOUND ASPSESSIONIDCCDQCBQR
Jun 13 09:37:03 tmm tmm[952]: Rule ASPTEST : ASPSESSIONID FOUND ASPSESSIONIDQQSCDCQQ
Jun 13 09:37:03 tmm tmm[952]: Rule ASPTEST : ASPSESSIONID NOT FOUND
So we can capture the ASPSESSIONID info.
When we originally tried cookie insert the customer complained of some of his customers being logged out or told they were not logged in. A sympton of being re-load balanced and presenting an ASPSESSIONID that the server knew nothing about? Unfortunately we didn't capture any tcpdump or header info at this stage so are going of memory!! But I agree with you hoolio the load balancing should work irrespective of what cookie the node might set.
The whole problem with failure is that I've not seen any, the site is VERY busy and tcpdumps are 100mb+ in less than a minute. And we rely on the customer getting complaints from his clients accessing the site. It's all very messy to work out I'm afraid.
Thanks again - Julian.