Static Variables Vanish

  • Thread starter Thread starter moonliver
  • Start date Start date
M

moonliver

I have an asp.net application that uses a dll that has Shared/Static
members.

I thought that the values in the Shared/Static members should only
recycle if the application was restarted. but it seems that it is being
recycled after the session count falls to zero.

Does this sound right? Can I make the Shared/Static members persist
past zero sessions?
 
After a certain period of inactivity, the application shuts down, and
restarts when it receives another request.
 
I have an asp.net application that uses a dll that has Shared/Static
members.

I thought that the values in the Shared/Static members should only
recycle if the application was restarted. but it seems that it is being
recycled after the session count falls to zero.

Does this sound right? Can I make the Shared/Static members persist
past zero sessions?
You can store the values in a text file, so the application can always
see them. Any time the reference to that dll goes away, so do the
variables.

T
 
Back
Top