Exemple #1
0
        private void setUserDefaults(bool isLoad = true)
        {
            //Locals
            bool   isActive   = false;
            string accountUrl = string.Empty;
            string key        = string.Empty;

            try
            {
                isActive = COMMON.setLoggedUserSession(SavedSession.UserGuid);
                key      = isLoad ? "LockedUser" : "logoutUrl";
                if (!isActive)
                {
                    AppSettingsReader appSettingsReader = new AppSettingsReader();
                    accountUrl = Convert.ToString(appSettingsReader.GetValue(key, typeof(string)));
                    if (!string.IsNullOrEmpty(accountUrl))
                    {
                        Response.Redirect(accountUrl, true);
                    }
                }
            }
            catch (Exception ex)
            {
                string s = ex.Message;
            }
        }