I am trying to create a Saml sign request using Sustainsys library(v2.2) .HttpResponse already has the SessionId and while adding the Saml2 Cookie using the below code.The Already existing Session id is duplicated .This is causing issues in the Stickiness of the sessions created in the loadbalancer . Any Idea how to resolve this issue ?
if (!string.IsNullOrEmpty(commandResult.SetCookieName))
{
var protectedData = HttpRequestData.ConvertBinaryData(
MachineKey.Protect(
commandResult.GetSerializedRequestState(),
HttpRequestBaseExtensions.ProtectionPurpose));
response.SetCookie(new HttpCookie(
commandResult.SetCookieName,
protectedData)
{
HttpOnly = true
});
