Hi All,
I want to access session objects of the current request through the web service.
I have set the enable session attribute also.
[WebMethod(EnableSession=true)]
But in spite of this, I am getting null values for the all the session variables. Infact there is no session keys left in it.
How to tackle this issue.
Thanks,
Dip
Accessing session objects in Web service
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Suthish NairRank #92 · 22.8K reputationPosted Aug 1, 2011, 11:40 AM EDT
Can you post the sample code using to retrieve the Session Value.
This way you need to retrieve the value -- HttpContext.Current.Session["UserId"]
refer msdn