Forum Discussion
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 :)
- karth1cksec_359
Nimbostratus
- Pedro_HaoaRet. Employee
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com