Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Disable cookies

$
0
0

Hi there,

We are trying to disable the following cookies:

We added the following code:

        protected void Application_EndRequest()

        {
            try
            {
                if (System.Web.HttpContext.Current != null)
                {
                    System.Web.HttpContext.Current.Response.Cookies.Remove("EPiForm_BID");

System.Web.HttpContext.Current.Response.Cookies.Remove("EPiForm_VisitorIdentifier");
                }
            }
            catch (Exception)
            {
                //Do nothing, just don't take down the site
            }
        }

To our Global.asax.cs file.

However the cookies are still being loaded.

The cookies in question are:

EPiForm_BID

EPiForm_VisitorIdentifier

Any tips on how we can achieve this?


Viewing all articles
Browse latest Browse all 6894

Trending Articles