T
TSW
I am a fairly new programmer who is seeking some insight
into variable scope and IIS.
I have recently completed development on an ASP.Net
application (VB.Net). In order to make certain variables
available to all my subroutines I defined them as
follows: Shared VariableName
While this met my immediate need, it appears to be
causing problems when several users are accessing my
application concurrently. User A is getting variable
information from User B, etc.
I was under the impression that IIS created a unique
instance of my application for each user and that all
variable information would be available only to that
specific user. It appears that my assumption was
incorrect.
My question is as follows: How can I dimension variables
that are available to all of the sub routines contained
in my class file, but at the same time limit the scope to
the user that initiated the application?
Any assistance would be greatly appreciated.
Regards,
TSW
into variable scope and IIS.
I have recently completed development on an ASP.Net
application (VB.Net). In order to make certain variables
available to all my subroutines I defined them as
follows: Shared VariableName
While this met my immediate need, it appears to be
causing problems when several users are accessing my
application concurrently. User A is getting variable
information from User B, etc.
I was under the impression that IIS created a unique
instance of my application for each user and that all
variable information would be available only to that
specific user. It appears that my assumption was
incorrect.
My question is as follows: How can I dimension variables
that are available to all of the sub routines contained
in my class file, but at the same time limit the scope to
the user that initiated the application?
Any assistance would be greatly appreciated.
Regards,
TSW