I implemented a singleton class as a private class contained within my page. In the singleton, I store some data in a volatile variable. The issue is that the member variable retains its value between page executions. My assumption was that the class would be re-initialized upon first use during each page execution.
Why does it behave this way, and what should be done about it?
If the singleton instance is defined static it will be scoped as an application variable. The static scope is like global variable.