Dmitriy_Tiper
Aug 27, 2021Altostratus
Need to delete specific cookie from client browser when APM session is closed
Hi,
I need to delete specific cookie from client browser when APM session is closed. I found https://devcentral.f5.com/s/question/0D51T00006i7cT0/hot-to-delete-a-particular-cookiejsessionid-when-accesssessionclosed-event-is-trigered but looking on ACCESS_SESSION_CLOSED description it loos like "The iRule commands which require a flow context (for e.g. TCP, HTTP and SSL commands) can not be used in this event".
Indeed, if I am trying iRule from other topic:
when ACCESS_SESSION_CLOSED {
HTTP::cookie expires "JSSIONID" 0 absolute
HTTP::cookie expires "LtpaToken2" 0 absolute
}
It gives me error "command is not valid in current event context ".
Any help will be greatly appreciated.