Forum Discussion

Naumin_Dave_144's avatar
Naumin_Dave_144
Icon for Nimbostratus rankNimbostratus
Apr 28, 2016

Need help with JSESSIONID persistence

Have Universal persistence set up and use this irule:

when HTTP_RESPONSE {
     log "Server Address [IP::server_addr]" 
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"] 3600
}
}
when HTTP_REQUEST {
    log "request for [ HTTP::uri ] , when sessionId is -- [HTTP::cookie "JSESSIONID"] "
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"] 3600
}
} 

Below are the logs which we are getting on this Irule:

Apr 28 23:07:06 slot4/TUS3-F5-SYMC-EXT-NP1 info tmm[11639]: 01220002:6: Rule /Common/Universal_Test : request for /etc/designs/symantec/main.css.map , when sessionId is -- 51TdXvXVBj9d2d9HYp2nLyhGKTyN11SszF3bh2FKhMRLzwnnhX92!1417854095
Apr 28 23:07:06 slot4/TUS3-F5-SYMC-EXT-NP1 info tmm[11639]: 01220002:6: Rule /Common/Universal_Test : Server Address 10.44.2.19
Apr 28 23:07:10 slot4/TUS3-F5-SYMC-EXT-NP1 info tmm[11639]: 01220002:6: Rule /Common/Universal_Test : request for /bin/symantec/prodcutazsearch , when sessionId is -- xhPpXvXdSpd1V1P5R9VsSydh0jhqJY44cDLgQ5HYSgTFGBy16gpS!-38156817
Apr 28 23:07:10 slot4/TUS3-F5-SYMC-EXT-NP1 info tmm[11639]: 01220002:6: Rule /Common/Universal_Test : Server Address 10.44.2.19

we want to persist SessionID over here and which is failing with this Irule as you can see from logs.

can someone please help me, what part is missing in this irule?

Thanks a lot for your time and help in advance.

3 Replies

  • Tried other options of Irule as well from Devcentral links but no luck. https://devcentral.f5.com/s/articles/weblogic-jsessionid-persistence https://devcentral.f5.com/s/feed/0D51T00006i7MHQSA2 http://www.techstacks.com/howto/set-up-jsessionidbased-persistence-on-a-bigip.html
  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    Check if there are multiple JSESSIONID cookies for different URIs in presence.

     

  • Hello Dave, Have you follow this article: everything is explained step by step https://support.f5.com/kb/en-us/solutions/public/7000/300/sol7392.html It will work Regards,