Forum Discussion

ihsanekici_1810's avatar
ihsanekici_1810
Icon for Nimbostratus rankNimbostratus
Jul 06, 2015

Persistence Profile Problem ??

Hi

 

You can see problem below link and i sending my persistence profile config on below.What could be the problem?

 

http://www.inspectlet.com/dashboard/watchsession/869791769/2050662080?pn=1&accessResourceKey=7a685d2ae36eb16a43a21987cac88176acdd7872

 

Persistence Profile

 

=================================================

 

ltm persistence universal Universal_Cookie { app-service none defaults-from universal match-across-services enabled rule Cookie_Persistence timeout 600

 

Fallback Persistence Profile

 

==================================================

 

ltm persistence source-addr src_ip { app-service none defaults-from source_addr match-across-services enabled timeout 10800

 

Using Irule

 

===================================================

 

ltm rule Cookie_Persistence { Name : Virtual Server Cookie Persistence (standard)

 

Purpose : Cookie Persistence across Virtual Server services Methodology : Create cookie containing "unique" hash. This cookie is then used to persist connections.

when HTTP_REQUEST { if { [HTTP::cookie exists "b1P"] } { if cookie is present then persist persist uie [HTTP::cookie value "b1P"] set cookie_check 0 _debug_ log local0. "[virtual name] [IP::client_addr] PRESENT [HTTP::cookie value "b1P"] 0"

 

} else { set cookie_check 1 } }

 

when HTTP_RESPONSE {

 

if there is no cookie in request then add cookie to response if { $cookie_check eq 1 } { create hash for cookie set now [clock seconds] set token "[IP::server_addr][IP::client_addr][TCP::client_port][expr { int(1000000 * rand()) }]" binary scan [md5 $token] H* md5var junk insert cookie HTTP::cookie insert name "b1P" path / value $md5var_$now _debug_ log local0. "[virtual name] [IP::client_addr] INSERT [HTTP::cookie "b1P"] 1" persist add uie [HTTP::cookie "b1P"] } }

 

1 Reply

  • I haven't looked at the code, but is there a reason for performing the cookie persistence manually, rather then just using the built-in cookie persistence method?