المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Accessing Session data outside webmethod



C# Programming
09-13-2009, 03:50 PM
I'm currently writting a web service with sessions. I have a few methods like (getPrivileges) that need to read from Session[], but that I would not like to have them visible to outside requests.

The question is: how do I read a Session[] value (like Session["id"], or whatever) on a method that is not a WebMethod?

Best regards

Fratelli