Delete Cookie before seeding new Cookie...

airwin77
Kilo Contributor

I need to add a script to the startup/login process for my On-Prem instance, related to removing the previously set cookie. In my on-prem instance we have 2 servers & 10 user instances (JVM's) that are running, however because of the seeded cookie the load balancing portion isn't working correctly. I need to add a string / JavaScript to delete the cookie by name each time a connection is attempted. I know that there are conditions I could place on a cookie to expire, or have them deleted on a date / time event, but that won't work for what I need. The other Issue that makes this a little for interesting, is that we us SAML 2.0 with updates in conjunction with ADFS to provide a Single sign-on environment. So I'm thinking that I would have to script this specific cookie to be deleted from within the SAML Metadata?

The cookie name doesn't change; the only thing that changes within the cookie is the JVM it is mapping the user to.

Any help would be great.

1 REPLY 1

airwin77
Kilo Contributor

This is the recommendation I received from ServiceNow.
http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/