Sessions in basicHttpBinding

Posted by Nagababu under WCF on 8/31/2011 | Points: 10 | Views : 5476 | Status : [Member] | Replies : 1
Hi All,

I need to use the session in my WCF service, with basicHttpBinding.
I am using the below code:

HttpContext.Current.Session["ID"] = System.Configuration.ConfigurationManager.AppSettings["ID"].ToString();

Throwing error as Object is not referenced,Kindly help me on this issue.


Thanks,
Nagababu.




Responses

Posted by: Vuyiswamb on: 9/2/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
i have never used Sessions in WCF ,
http://www.codeproject.com/KB/WCF/Sessions_in_WCF.aspx

This article might help.



Thank you for posting at Dotnetfunda
[Administrator]

Nagababu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response