Shared (Static) variabled - how shared are they?

Administrator

VB.NET Forum Admin
Joined
Jun 3, 2004
Messages
1,462
Programming Experience
10+
Let's say at the top of my web page code behind (asp.net 2) I have:

Private Shared MyDataSet as DataSet

I set it as shared so it's available across postbacks, etc. However, is this variable unique to my session or is it shared among all users?
 
It's shared for all sessions, works same as Application state object.
 
File or DB, don't think there are other memory locations for session.
 
Back
Top