Windows Applications Fail to Communicate with Siteminder
When communicating with Siteminder server and creating OData requests, after registration the SMSESSION cookie is created and the application sucessfully sends requests. After restarting the application the SMSESSION is required again. By default the Siteminder server sends the cookie request which needs to be sent by the client. In some cases the request is not sent and the SMSESSION cookie is not created by the server so the client cannot communicate with the server.
var baseUri = new Windows.Foundation.Uri(sURL); var filter = new Windows.Web.Http.Filters.HttpBaseProtocolFilter(); var cookie = new Windows.Web.Http.HttpCookie("SMCHALLENGE", baseUri.host, "/"); cookie.value = "YES"; filter.cookieManager.setCookie(cookie, false);