Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Are session variables different on different computers?

Posted on 2016-07-27
3
Medium Priority
?
76 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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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 84

Expert Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

927 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