Forum Discussion
Jeff_Brinkerho1
Jun 15, 2015Nimbostratus
iRule needed to clear specific cookies from particular domain
Recently we moved our peoplesoft system to a subdomain of our DNS space. So instead of all our VIPs being for example, prod.abc.com they are now prod.ps.abc.com
Peoplesoft uses a cookie for sing...
AJ_01_135899
Jun 15, 2015Cirrostratus
I did see a prior post about removing it on the response:
https://devcentral.f5.com/questions/irule-for-cookie-removal
It states: "If you want the client to delete a cookie you'd need to tell it to in the response. Using HTTP::cookie remove in HTTP_REQUEST is going to remove the cookie from the request that is proxied to the pool--it wouldn't have any effect on the client."
So, something like:
when HTTP_RESPONSE {
if {[HTTP::cookie exists "PS_TOKEN"] {
if {HTTP::cookie domain "PS_TOKEN" contains "abc.com"}{
HTTP::cookie remove "PS_TOKEN"
}
}
}
Obviously may need to tweak slightly, as I haven't tested it.
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