开发者

Sharing Session across multiple WCF service Hosted on Same machine

I have Silverlight application having multiple WCF services as Business开发者_如何学JAVA Layer. We are storing some values like timeZoneID in session which can be used across all wcf service. We are able save values in session and also session can be shared across multiple wcf services , But we are getting issue of session overriding when multiple users access application simultaneously. It means Session is shared across multiple service as well as multiple users also. which is wrong. Can you please provide a solution for this issue to avoid session sharing across multiple users.

Thanks,


Store your session information outside of the WCF session mechanism. Stored them in the database and use an identifier to store/retrieve the session information on each service. If the client passes the same ID to the services he/she will retrieve his/her settings on each service.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜