Forum Discussion
adam88_359238
Altostratus
Feb 11, 2019iRule When HTTP Response Behavior
I'm trying to do a thing where if the F5 detects that the pool does not have active members, it will redirect the users to a specific URL but in addition it will also delete a session cookie.
I lea...
Stanislas_Piro2
Cumulonimbus
Feb 11, 2019The remove command will remove the cookie from the response, not ask the client to remove it from it’s cache...
To remove a cookie from client cache, you must set an expiration time before current time... the best practice is to set it to 1970!
when HTTP_REQUEST {
...
if { [active_members http_pool] = 0 } {
HTTP::respond 302 noserver location "https://www.mywebsite.com" Set-Cookie "sessionID=path=/; Expires=Thu, 01-Jan-1970 00:00:00 GMT"
}
}
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
