?
Solved

How to prevent Session variables from being shared by various Silverlight clients.

Posted on 2011-09-06
1
Medium Priority
?
245 Views
Last Modified: 2012-05-12
I've heard that if I send data from a Silverlight client to a asp.net server (through WCF) and store it in a session (on the server) that other users on other clients can access that session data also.
Is that true?
I don't want that to happen. I want each client to be able to store his own data and retrieve it later.
How do I make sure that happens?
0
Comment
Question by:XTO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
zvytas earned 1000 total points
ID: 36489298
This depends how you handle session in your WCF service. There are different InstanceContextModes, one of them is Single - in this case session is shared amongst ALL clients. What you want to use is PerSession. More info can be found here:

http://msdn.microsoft.com/en-us/library/system.servicemodel.sessionmode.aspx
http://msdn.microsoft.com/en-us/library/ms733040.aspx
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question