# cookie manipulations and coding

**URL:** <https://community.f5.com/t/cookie-manipulations-and-coding/16126>\
**Category:** Technical Forums\
**Tags:** irules, security, ltm, application-delivery\
**Created:** [August 9, 2016, 5:07pm UTC](https://community.f5.com/t/cookie-manipulations-and-coding/16126 "2016-08-09T17:07:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerm1020\_254086](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jerm1020\_254086](https://community.f5.com/u/jerm1020_254086)\
**Post date:** [August 9, 2016, 5:07pm UTC](https://community.f5.com/t/cookie-manipulations-and-coding/16126/1 "2016-08-09T17:07:39Z")

</div>

We have a high priority deliverable which requires extensive cookie manipulation and removal/addition to encoding. Essentially we need to inspect for double encoded cookie values and replace them with single encoding for particular URIs. The reverse process from single to double is also required. any insight to this would be extremely helpful!

---

<div class="post-metadata">

**Author:** ![Vijay\_E](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@Vijay\_E](https://community.f5.com/u/Vijay_E)\
**Post date:** [August 9, 2016, 5:22pm UTC](https://community.f5.com/t/cookie-manipulations-and-coding/16126/2 "2016-08-09T17:22:15Z")

</div>

Can you provide the logic in a step-by-step process ? This will help in providing the appropriate iRule, assuming it is possible.
