VentureFree
Well-known member
- Joined
- Jan 9, 2008
- Messages
- 54
- Programming Experience
- 5-10
What is the simplest way to have a global variable on an ASP.net site that is shared by everyone on the site (i.e. not a session variable)?
The reason I want this is because I have a notification system that emails me in case of an error. If it's an error that affects everyone on the site I could end up with literally hundreds of emails about a single error. I want to be able to send a single email and set the global variable so that someone else that gets the same error won't also send an email. Ideally it would be a datetime rather a simple flag so that it can eventually resend the email if it's not addressed after a set amount of time.
The reason I want this is because I have a notification system that emails me in case of an error. If it's an error that affects everyone on the site I could end up with literally hundreds of emails about a single error. I want to be able to send a single email and set the global variable so that someone else that gets the same error won't also send an email. Ideally it would be a datetime rather a simple flag so that it can eventually resend the email if it's not addressed after a set amount of time.