Solved

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

Posted on 2011-09-06
1
243 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 250 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

690 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