protected void Page_Load(object sender, EventArgs e) { #region Logout if (string.Compare(Convert.ToString(RouteData.DataTokens["logout"]), "true", true) == 0) { // Do logout logic here CookieHelpers.ClearCookies(); Response.Redirect(string.Format("/Default.aspx?lang={0}", Language), false); return; } if (string.Compare(Convert.ToString(RouteData.DataTokens["expire"]), "true", true) == 0) { AlertMessage = RewardsHelper.GetTranslation(TranslationKeys.Errors.SessionExpired); } if (string.Compare(Convert.ToString(RouteData.DataTokens["invalid"]), "true", true) == 0) { AlertMessage = RewardsHelper.GetTranslation(TranslationKeys.Errors.SessionExpired); } #endregion Language = HttpContext.Current.Request.QueryString["lang"]; if (string.IsNullOrEmpty(Language)) { Response.Redirect("/Lang.aspx", false); return; } if (IsVipDomain) { Response.Redirect("/_Secure/VIP/login.aspx", true); } }