Forum Discussion
Dmitriy_Tiper
Aug 27, 2021Altocumulus
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-whe...
Aug 30, 2021
Hi Dmitriy,
Can you try this iRule?
when CLIENT_ACCEPTED {
set status 0
}
when ACCESS_SESSION_CLOSED {
set status 1
}
when HTTP_RESPONSE_RELEASE {
if { $status } {
HTTP::cookie expires "JSSIONID" 0 absolute
HTTP::cookie expires "LtpaToken2" 0 absolute
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects