Jan 8, 2008

session does not working in Web Service

The EnableSession property of the WebMethod attribute enables session state for an XML Web service method. Once enabled, the XML Web service can access the session state collection directly from HttpContext.Current.Session or with the WebService.Session property.

in VB.NET

_

in C#

[System.Web.Services.WebMethod(EnableSession=true)]