Solved

Are session variables different on different computers?

Posted on 2016-07-27
3
35 Views
Last Modified: 2016-07-28
I have an Intranet application. So different users access the website within the company at their work stations. A few of the users share the same username and password (Don't panic we have reasons for allowing for this).

I am working on a C# MVC application.

In the C# code, data is assigned to a session variable, depending upon various conditions.
Session["GateKeeper"] = InVariable;

So here is my question. Will each particular user at his or her work station have their own unique instance of the Session variable value? Or is the value shared by all of the users.

Example scenario. Amy is at her work station and her Session["GateKeeper"] is assigned a value of "Amy". Fernando is at a different work station, and has just logged in. his session variable Session["GateKeeper"]  is assigned a value of "Fernando".  Since Fernandos session variable was assigned last, will it over write Amy's session variable, or does each work station have a different value for Session["GateKeeper"] ?
0
Comment
Question by:brgdotnet
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41732169
Session IDs are normally assigned by the server session code to a specific browser and connection.  It might be possible to cross contaminate the data but that is very rare.
0
 
LVL 2

Author Closing Comment

by:brgdotnet
ID: 41733018
Thank you Dave. Awesome beard you have going on there.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41733560
Thank you and you're welcome!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now