Application State - RemoveAll()

  • Thread starter Thread starter Guadala Harry
  • Start date Start date
G

Guadala Harry

I store a few things in my app's Application state. Sometimes I need to
change them, so I have been calling Application.RemoveAll() using the
following line, and then re-inserting my variables with their new values:

System.Web.HttpContext.Current.Application.RemoveAll();

Is this a safe thing to do? Is it possible that RemoveAll will remove stuff
that ASP.NET, itself needs to have in the Application state? Or can I safely
assume that RemoveAll() removes only the varibles I put into the Application
state.

Thanks!
 
Back
Top