Forum Discussion

James_Price's avatar
James_Price
Icon for Nimbostratus rankNimbostratus
Jun 02, 2016

upgrade from 11.6 to 12.0 breaks persistence

This irule works in 11.6 but does not in version 12.0. The persistence is supposed to get set when the database is known. This occurs on the first request to the server. My understanding is that cooking gets set in the response to the client. Then the client will maintain that cookie until it expires. This logic has worked since version 9. The uri that it operates on looks like the following: forms/frmservlet?config=prod

A couple of tcpdumps show the cookie is set on version 11.6 and continues to be set on each subsequent http requests. On 12.0 the inb_cookie is shown on the initial http request but disappears on subsequent requests. Any idea on what is going on here?

The server also has a cookie profile with a cookie insert with a different name. One option I see that I have is to do away with the pool displacement section all together because only one database is now called on this server. Just let the cookie profile hand out the cookie and the default pool be called.

Thanks for any responses,

when HTTP_REQUEST { set database [ findstr [http_uri] "config=" 7 "&" ]; if { [HTTP::header "User-Agent" ] contains "Mac OS" } {

 set firstthree [substr $database 0 3];

   if { "$firstthree" equals "mac"  or  "$database"  equals ""  } {
   return
   }
   else { 
    log local0. "firstthree $firstthree database $database"
    set uri [HTTP::uri];
    set query [HTTP::query]
    set dirprog [HTTP::path ]
    set end_query [ findstr $query, "&" 0 ];
    set macconf "mac${database}"; 

    set new_query  "config=${macconf}${end_query}";
    set new_uri "${dirprog}?${new_query}"

   HTTP::redirect ${new_uri}
    HTTP::uri  $new_uri;
    log local0. "new_query orig_query new_uri= $new_query $query $new_uri"       
   }
}
 pool displacement

set poolname [findclass ${database} inb_pool_array "," ] log local0. "poolname = $poolname" if { $poolname != "" } { persist cookie insert inb_cookie pool $poolname } }

No RepliesBe the first to reply