Forum Discussion

MDPF52_180608's avatar
MDPF52_180608
Icon for Nimbostratus rankNimbostratus
Jan 21, 2015

iRule cookie removal

Hello DevCentral Community,

 

First Question:I'm facing an issue with my iRule, I need to delete a cookie in the user browser if certain URI like "/logout" is requested.

 

Second Question: If I have multiple cookies with the same name like TestCookie but different values how i can delete all of them ?

 

Can you help me ?

 

Thanks in advance, Best Regards

 

2 Replies

  • if you want to reset the cookie validity you just have to the same as before. 1) in HTTP_REQUEST if cookie exist set a var 2) in HTTP_RESPONSE you re apply a maxage on the cookie