Forum Discussion

Will_Petersen_9's avatar
Will_Petersen_9
Icon for Nimbostratus rankNimbostratus
Oct 26, 2006

Persistence on 2 different cookies

Trying to persist a connection accross services and we currently have 2 cookies and since the cookie hash profile only allows me to specify one, I have created the following iRule, however it doesn't like the any service piece, but I don't know how else to do it.

 

 

when HTTP_REQUEST {

 

if { [HTTP::cookie exists "JSESSIONID"] } {

 

set cookie_s [HTTP::cookie "JSESSIONID"]

 

persist add uie $cookie_s any service 2400

 

}

 

if { [HTTP::cookie exists "HRGENERALPURPOSECOOKIE"] } {

 

set cookie_s [HTTP::cookie "HRGENERALPURPOSECOOKIE"]

 

persist add uie $cookie_s any service 2400

 

}

 

}

 

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    This post seems to have the answer you need, but it's not clear whether the proposed solution actually worked...

     

    http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=9909 (Click here)

     

     

    I'm updating the wiki page with this detail.

     

     

    Please post back & let us know if you have better luck.

     

     

    /deb