i got it working, earlier it was like this:
[WebMethod]
public static void SetSession(string value)
{
HttpContext.Current.Session["Value"] = value;
}
I removed static keyword and set EnableSession = true...
[WebMethod(EnableSession = true)]
public void SetSession(string value)
{
HttpContext.Current.Session["Value"] = value;
}
Thanks
Rohit