title: Sharing Session between webservice and asp.net application
body: <p>I have an asp.net application and webservices (asmx) that reside in the same application but not in the same folder of the aspx files. I aslo have a winform application that uses the webservices. I have marked the webservice methods with [WebMethod(EnableSession = true)] but I am not able to share the same session values that are on the application in the webservices. The winform application has access to the sessionID from the application and I am using the following code</p>
  
  <pre><code>Uri uri = new Uri(ServerServiceUrl);
  _cookieContainer = new CookieContainer();
  _cookieContainer.Add(new Cookie("ASP.NET_SessionId", SessionID, "/", uri.Host));
  </code></pre>
  
  <p>My question is: Is there something that I am missing or doing wrong that I cannot access the application sessioin from the webservices?</p>