1. mark your web method
[WebMethod(EnableSession=true)]
public int SessionHitCounter() ...
2. on the client side
YourWSProxy ws = YourWSProxy();
ws.CookieContainer = new CookieContainer();
3. if your web service class is not derived from WebService, use
System.Web.HttpContext.Current.Session
[WebMethod(EnableSession=true)]
public int SessionHitCounter() ...
2. on the client side
YourWSProxy ws = YourWSProxy();
ws.CookieContainer = new CookieContainer();
3. if your web service class is not derived from WebService, use
System.Web.HttpContext.Current.Session