Forum Discussion

atoth's avatar
atoth
Icon for Cirrus rankCirrus
Oct 06, 2016

http::cookie manipulation

Want to check my syntax for an irule I'm writing. The vip has cookie-based persistence, and at times, the pool server will want to nullify that cookie, forcing the LB to select another pool server. Want to know if this makes sense and if the code syntax looks good.

 

when HTTP_RESPONSE {
if {[http::cookie value bigipcookie ] == "" } {
http::cookie remove bigipcookie }
}

So the way the server nullifies the cookie is by blanking out the value of the cookie. Based on whether the cookie's value is empty or not, the irule should delete the cookie.

 

Thoughts?

 

No RepliesBe the first to reply