Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Are session variables different on different computers?

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

722 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