Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6660471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:09:34+00:00 2026-05-26T02:09:34+00:00

to maintain a web site hit counter we can keep that variable in application[‘hitcounter’]

  • 0

to maintain a web site hit counter we can keep that variable in application[‘hitcounter’] and save it using appliaction_end event to database if application reset and reload it in application_start event from database and then update it whenever it website get hit from a user. my question is what if ‘IIS’ crash then using which event i save the current value of ‘hitcounter’ to database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:09:34+00:00Added an answer on May 26, 2026 at 2:09 am

    You can’t guarantee the application works well enough to do anything during a crash. As an extreme scenario, imagine the server crashes as a result of the power cord being pulled, that the last byte of hard drive space has been used up, etc.

    You can save your hitcounter to the database more often. If you don’t want to incur a database hit too often (say on every request), you can save it to the database every 10, 100 or 1000 hits, just by putting the save routine on BeginRequest event handler and save only when the number is divisible by 10, or 100.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I maintain a legacy ASP.Net Web application (using .Net 2.0 + SQL Server 2005
I'm using Django to create a site that provides a separate web UI for
I was asked to improve and maintain an internal Web application used and approved
I'm in a very bad situation: I need to maintain asp.net web application hosted
I want to maintain state in my Perl web app. How can I do
I'm rewriting a PHP web site in ASP.NET MVC. I'd like to maintain the
I have a web-app that is a sort of calendar application and there are
I recently installed a secure certificate for a web site I help maintain. When
I've got a web site that contains a set of effectively independent tools with
i have a web site that uses forms authentication. the problem is that i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.