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...
Jeff_Brinkerho1
Jun 15, 2015Nimbostratus
I tried something very similar based on an example I found. Unfortunately it does not appear to remove the cookie (from the browser side). Watching with the dev console in chrome or IE, the cookie is still there with.
Oh, and "contains" for the evaluation won't work - as we moved to a subdomain. So it has to be "equals". Did I screw something up with this try?:
when HTTP_REQUEST { Check to be sure the cookie in question exists.
if { [info exists [HTTP::cookie PS_TOKEN]] } {
Now check to see if the domain is .abc.com set cookieDomain [HTTP::cookie domain "PS_TOKEN"] if { $cookieDomain == ".abc.com" } { if so, delete the cookies
HTTP::cookie remove PS_TOKEN HTTP::cookie remove PS_TOKENEXPIRE HTTP::cookie remove PS_LOGINLIST HTTP::cookie remove ExpirePage HTTP::cookie remove SignOnDefault HTTP::cookie remove pgltHPReload } } HTTP::redirect [HTTP::host][HTTP::uri] }
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