Esempio n. 1
0
        protected void Application_BeginRequest(Object sender, EventArgs e)
        {
            var context = new HttpContextWrapper(HttpContext.Current);

            ExperimentManager.AssignExperiment(context);
            GlobalizationManager.SetCurrentCulture(context);

            context.Response.Headers["Access-Control-Expose-Headers"] = "LoginUrl";
        }
Esempio n. 2
0
        protected void Application_BeginRequest(Object sender, EventArgs e)
        {
            var context = new HttpContextWrapper(HttpContext.Current);

            ExperimentManager.AssignExperiment(context);
            GlobalizationManager.SetCurrentCulture(context);

            //if (context.Request.Cookies[Constants.TiPCookie] == null &&
            //    context.Request.QueryString[Constants.TiPCookie] != null)
            //{
            //    context.Response.Cookies.Add(new HttpCookie(Constants.TiPCookie, context.Request.QueryString[AuthConstants.TiPCookie]) { Path = "/" });
            //}
        }