Forum Discussion
NetWork
Nimbostratus
Dec 23, 2020iRule to delete the cookies
We have a requirement to delete the SSO cookies after logging out the application. Can someone help if this can be achieved through iRule?
- jaikumar_f5
Noctilucent
Do you mean the APM session or other SSO cookies, try testing this or feel free to customize if you know the cookie name.
ltm rule remove_logout_cookie { when HTTP_REQUEST { set logging_out 0 set cookie_names [HTTP::cookie names] if {[string tolower [HTTP::path]] ends_with "logout.php" } { set logging_out 1 } } when HTTP_RESPONSE { if { $logging_out == 1 }{ foreach cookie_name $cookie_names { HTTP::cookie remove $cookie_name } } } }
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