473,473 Members | 1,824 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Application State - RemoveAll()

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.RemoveA ll();

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!

Nov 19 '05 #1
1 1244
ASP.Net doesn't store anything in the HttpApplicationState...so there's no
worried about "erasing" anything that it might need....

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Guadala Harry" <GM**@NoSpam.net> wrote in message
news:eK**************@TK2MSFTNGP12.phx.gbl...
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.RemoveA ll();

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!

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: cpavon | last post by:
Hello everyone, I am fairly new to MACT, I am currently trying to parse the oResponse.Body to retrive a dynamic values...store in an array and then randomly post those values. Does anyone...
2
by: Sam | last post by:
I am attempting to remove a full node. XML Example: <Videos> <Video> <Name>Crocodile Dundee 2</Name> <Media>DVD</Media> </Video> <Video> <Name>Terminator 6</Name> <Media>DVD</Media>
1
by: John Young | last post by:
Hi I have just started messing about with generics. I have done this.. List<string> myList = new List<string>(); I've added strings to the list... But now I want to clear the list...
6
by: Eric McVicker | last post by:
Session state has options to be inproc, state server or sql server. Why does Application state not allow for state server or sql server so the same Application state could be shared between...
3
by: msnews.microsoft.com | last post by:
So what is the best way to iterate through the hash table to remove all the members? i tried using the enumerator but it gets an exception as it removes each element. dim de as...
1
by: Nathan Sokalski | last post by:
Is there a difference between Session.Clear() and Session.RemoveAll()? The descriptions and documentation pages seem to say exactly the same thing, but I am assuming there must be some reason for...
0
by: =?Utf-8?B?SkhhbGV5?= | last post by:
Our system is: IIS Server: dual Intel Xeon 2.80 GHz, 4 GB Ram Windows Server 2003 SP2 IIS 6.0 SQL Server: dual Intel Xeon 2.80 GHz, 4 GB Ram (separate server) Windows Server 2003 SP2 SQL...
3
JimWu
by: JimWu | last post by:
Hi, I have a problem about session and application. The situation describes as follows. I have two web site A and B. They have different AppDomain. First of all, I use session to record some...
2
by: mettá | last post by:
I have a web site on a shared server (Win2003) and occasionally the site goes down with a message "Service Unavailable" The ISP says there must be a problem with the ASP content and excessive use...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.