Ronak Shirodkar
Ronak Shirodkar

Reputation: 11

Session Overwrite

I have a session variable which is accessed by multiple users through different pc's...so my question is do session variables overwrite when same login credentials are associated?

Upvotes: 1

Views: 1042

Answers (2)

Adil
Adil

Reputation: 148140

Session variables / objects are 'unique to users', also unique to browsers and are not over written by other users. You can read more about session state here.

Sessions are identified by a unique identifier that can be read by using the SessionID property. When session state is enabled for an ASP.NET application, each request for a page in the application is examined for a SessionID value sent from the browser. If no SessionID value is supplied, ASP.NET starts a new session and the SessionID value for that session is sent to the browser with the response. Reference

Upvotes: 2

highwingers
highwingers

Reputation: 1669

Session Variables / Cookies are unique to Users/Browsers only. However you are confusing sessions with Application variables....which are Global to users. Sessions are generated via Webserver.

Upvotes: 0

Related Questions