/// <summary> /// Adds the Current Primary cache's location identifier in the Response cookie collection. /// </summary> /// <param name="context">Context of current HttpRequest.</param> protected void UpdateCookies(IAspEnvironmentContext context) { if (_cache != null) { if (!string.IsNullOrEmpty(_cache.PrimaryPrefix)) { context.SetLocationCookie(_cache.PrimaryPrefix); if (_logs) { LogInfo("Session Location Changed: New_Location=" + _cache.PrimaryPrefix, null); } } } }
/// <summary> /// Adds the Current Primary cache's location identifier in the Response cookie collection. /// </summary> /// <param name="context">Context of current HttpRequest.</param> protected void UpdateCookies(IAspEnvironmentContext context) { if (_cache != null) { if (!string.IsNullOrEmpty(_cache.PrimaryPrefix)) { context.SetLocationCookie(_cache.PrimaryPrefix); //context.Response.Cookies.Set(new HttpCookie(LOC_IDENTIFIER, _cache.PrimaryPrefix)); if (_logs) { LogInfo("Session Location Changed: New_Location=" + _cache.PrimaryPrefix, null); } } } }