Is it possible to make a rule in property manager to match and delete cookies? I'd like to match on a wildcard, i.e. ox_idp_* and delete the cookie.
Hi Nick Le Mouton,
The metadata can change based on request cookie or response cookie. Could you clarify further whether cookie is present in request to Akamai or response from Origin?
This is on the request cookie.
Literally off the top of my head - you could use <edgeservices:modify-incoming-request.regexp-header> to match on the the incoming Cookie header and perform a PCRE regex match and simply replace each matching instance with a null length string.
As long as your regex is suitably crafted, it should be fairly simply to remove the offending cookies from the Cookie header while leaving the others intact. You'll need Akamai PS to help you though.
Edit: Quick bit of regex golf (untested)
Based on the assumption that there is only this request cookie (if there are multiple then again the metadata needs to be modified) , the below rule will work.
The above rule will remove incoming cookies if the cookie ox_idp exists. If there are other cookies then you can add the cookies specifically after removing the ox_idp cookie.
If you delete the Cookie header, you ll delete ALL cookies...I don't think you want to do tha.
Nick Le Mouton, cookies can only be deleted by the browsers by setting the expiry date in the past.
Akamai can either set response cookies with a new expiry date or delete the cookie when the request is forwarded to origin...
Depending on the ask, it may requires Akamai PS to do the job.
did Fabrice's reply help you understand the possible solutions? Do you know which step to take next, or do you have further demand for support on the Community?
Retrieving data ...