Forum Discussion

fgf_165674's avatar
fgf_165674
Icon for Nimbostratus rankNimbostratus
Feb 22, 2015

JSESSIONID PERSISTENCE

Hello,

 

I am using the next iRule for adding persistence:

 

when HTTP_RESPONSE { if { [HTTP::cookie exists "JSESSIONID"] } { persist add uie [HTTP::cookie "JSESSIONID"] } }

 

when HTTP_REQUEST { if { [HTTP::cookie exists "JSESSIONID"] } { persist uie [HTTP::cookie "JSESSIONID"] } }

 

I have the next problem:

 

1 - Client establishes a connection with the server and, when the browser makes a favicon.ico request, the server responds "404 error, connection: close".

 

2 - Next, the client sends more packets with the same JSESSIONID but these packets are forwarded to other pool members (I guess that F5 takes these packets as a new connection).

 

The question is:

 

For different connections with the same JSESSIONID, the iRule showed previously should forward the packets to the same pool member?

 

Thanks. Regards,

 

2 Replies

  • 1 - Client establishes a connection with the server and, when the browser makes a favicon.ico request, the server responds "404 error, connection: close".

     

    does the file exist in your server?

     

    Favicon

     

    http://en.wikipedia.org/wiki/Favicon

     

    2 - Next, the client sends more packets with the same JSESSIONID but these packets are forwarded to other pool members (I guess that F5 takes these packets as a new connection).

     

    are you using oneconnect? if not, can you try?

     

    sol7964: Persistence may fail for subsequent requests on Keep-Alive connections

     

    https://support.f5.com/kb/en-us/solutions/public/7000/900/sol7964.html