Accessing Session data outside webmethod
-
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
-
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
AndreFratelli wrote:
The question is: how do I read a Session[] value (like Session["id"], or whatever) on a method that is not a WebMethod?
You mean those methods which are not exposed as Web Method ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
AndreFratelli wrote:
The question is: how do I read a Session[] value (like Session["id"], or whatever) on a method that is not a WebMethod?
You mean those methods which are not exposed as Web Method ?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
Abhijit Jana wrote:
You mean those methods which are not exposed as Web Method ?
Exactly
Fratelli