[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

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

Posted on 2011-09-06
1
Medium Priority
?
247 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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 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