Solved

Are session variables different on different computers?

Posted on 2016-07-27
3
55 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
[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
  • 2
3 Comments
 
LVL 83

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 83

Expert Comment

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expression Evaluater 3 46
VB.NET Textbox input validation 4 66
Web page design problem 3 18
How to set focus on a dynamic control 18 26
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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