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
Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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