protected override CookieContainer GetCookieContainer(string host, HttpCookieCollection cookies)
        {
            var container = base.GetCookieContainer(host, cookies);

            if (this.PageContext.ExportContext.ExportOptions.MarkupMode != MarkupMode.EndUserSite &&
                cookies.AllKeys.Any(x => x == ".AspNet.Cookies"))
            {
                cookies.TransferCookie(".AspNet.Cookies", host, container);
            }

            return(container);
        }