Forum Discussion
iRule modifies the cookie to include the domain name
Hi , I am new to irules and I have a question and hope someone help me. I need to add a domain name to a certain cookie (modify the cookie to include the domain name also) and an irule to do the same for the all cookies.
I have did this for all the cookies (I don't know if its a valid one) rule Add_Domain_To_Cookie {
when HTTP_RESPONSE { set newdomain "abcdef.com" foreach mycookie [HTTP::cookie names] { HTTP::cookie domain $mycookie $newdomain } } }
1 Reply
- Vijay_E
Cirrus
See these 2 links:
https://devcentral.f5.com/questions/irule-to-rewrite-cookie-domain
https://devcentral.f5.com/questions/setting-the-domain-of-a-cookie
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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