Hi John,
Application_OnStart handler is executed only once in the lifetime of an
application
and not for every application instance.The application object is available
in all pages or all modules of the
application.You can add items to the Application object,For eg:
Application["test1"]="Test 1";
Once an item is added like this it is available to all pages or modules
within the application.
To remove the item added above,
Application.Remove("test1");
You can also use Clear or RemoveAll method to remove all items from a
Application state.
Application.RemoveAll(); // this will remove all items from the application
state.
Hope this helps.
Regards,
Marshal Antony
..NET Developer
http://www.dotnetmarshal.com
"WJ" <Jo*******@HotMail.Com> wrote in message
news:un**************@TK2MSFTNGP09.phx.gbl...
Is the "Application_Start" event on Global.asax created by the "very first
user" who visits the Asp.Net web site ? Or is it started per user ? If it
is the first case, how do you flush the global variables without shutting
down the web site ?
Thanks
John