Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Irule to rewrites all cookies being set with the domain name

Hi folks !!

Please find the IRULE i applied today on the private NLB, for inserting the Domain name for all JSESSIONID cookie we received from a backend application server :

when HTTP_RESPONSE { set cookies [HTTP::cookie names] #If Persistence Cookie is there if { $cookies contains "JSESSIONID" } { #rewrites all cookies being set with the domain foreach cookie_name $cookies { set cookie_value [HTTP::cookie $cookie_name] HTTP::cookie remove $cookie_name HTTP::cookie insert name $cookie_name value $cookie_value domain "zyx.abc.com" path "/" } } }

Now my requirment is to insert Domain name for all cookies in the response traffic.

Kindly assist :)

0
Rate this Question
Comments on this Question
Comment made 16-Aug-2018 by karth1cksec 1

Image Text

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hello,

Maybe this article could helps:

Weblogic JSessionID Persistence for Session Replication

0