Exemplo n.º 1
0
        protected void Application_PostAuthenticateRequest(object sender, EventArgs e)
        {
            // Front UserUserAuth
            var user = UserAuth.GetSignInUser(UserAuth.CookieUser);

            if (user.IsLogedIn())
            {
                HttpContext.Current.Items.Add("User", user);
                BrowserHelper.BackButtonClearCache();
            }

            // Admin User
            var adminUser = UserAuth.GetSignInUser(UserAuth.CookieAdminUser);

            if (adminUser.IsLogedIn())
            {
                HttpContext.Current.Items.Add("AdminUser", adminUser);
                BrowserHelper.BackButtonClearCache();
            }
        }