private static HttpContext GetHttpContext(HttpContextBase context)
 {
     var app = (HttpApplication)context.GetService(typeof(HttpApplication));
     return app.Context;
 }
        public void Logout(HttpContextBase Context)
        {
            var app = (HttpApplication)Context.GetService(typeof(HttpApplication));
            string Business_Domain = System.Configuration.ConfigurationManager.AppSettings.Get("business_domain");

            if (Business_Domain == null || Business_Domain == "")
            {
                Business_Domain = "pureprofile.com";
            }
            else
            {
                Business_Domain = Business_Domain.ToLower();
            }

            RemovePersistentCookie(Context);
            RemoveLiveCookie(Context);
        }
 private static HttpContext GetHttpContext(HttpContextBase context)
 {
     var app = (HttpApplication)context.GetService(typeof(HttpApplication));
     Debug.Assert(app != null, "app != null");
     return app.Context;
 }