I need to use or stimulate a very simple session object inside my WCF app.
I simply need to store some values at the beginning of a call and I need access to these v
You have to do a couple of things.
Set aspNetCompatibilityEnabled = true on your host (inside system.ServiceModel | serviceHostingEnvironment)
The service (not the contract) - should be attributed with:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
Finally you have you have to set allowCookies on your binding to true.
Just curious, are you certain you need session?