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
How do I post "code" on here, I cant seem to find the correct way....
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 .syr.edu
set cookieDomain [HTTP::cookie domain "PS_TOKEN"]
if { $cookieDomain == ".syr.edu" } {
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 https://ptl9unit.ps.syr.edu[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