I've just learned the hard way that public variables are REALLY PUBLIC!
I've developed an OLE Server which is the heart of my web application. In the server, I place system-wide and user-preference properties in a couple of public variables so they are available across calls to components within the server. I plan to use the same server, however, for multiple web sites. One of the properties is the location of the database. Guess what happens when two users try to access two different web sites on the same server.
Before I go tearing through my code to wrench out these public variables, I thought I would post this question here to see if anyone else has worked out a clever way to scope variables across components within a session, but not across sessions.
Thanks for your thoughts,
Ron Lawrence
I've developed an OLE Server which is the heart of my web application. In the server, I place system-wide and user-preference properties in a couple of public variables so they are available across calls to components within the server. I plan to use the same server, however, for multiple web sites. One of the properties is the location of the database. Guess what happens when two users try to access two different web sites on the same server.
Before I go tearing through my code to wrench out these public variables, I thought I would post this question here to see if anyone else has worked out a clever way to scope variables across components within a session, but not across sessions.
Thanks for your thoughts,
Ron Lawrence