473,411 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

2 hits per http request?

Hey people, I've been programming on our new C# MCMS intranet for
about 3 months. This is my first real .Net project. I'm experiencing
some very strange things.

In the global.asax.cs in the Application_BeginRequest function, I've
told the application to add to a Session["Hits"] variable. Everytime
I do a single request this number gets incremented twice. So I wrote
out all my page requests to a file to verify it.

My unexplained solution...
I backed up my entire project folder(v2.2). Then I deleted the
project from the folder and copied my previous version(v2.1) to the
folder. I opened IE and tested and I only got 1 hit per request.
Then I replaced my v2.1 with v2.2 again and it's still only getting 1
hit per request. This is good but I need to know why this was
happening. Could this be a wiggy .Net bug or something?

It was blowing up the log files and filling up the hard drive!
If anyone can explain I'd be very interested.
Thanks.
Mark
Jul 21 '05 #1
1 1377
Is there some reason you don't have the code in the Session_Start method?
"Mark" <ne****@yahoo.com> wrote in message
news:6d**************************@posting.google.c om...
Hey people, I've been programming on our new C# MCMS intranet for
about 3 months. This is my first real .Net project. I'm experiencing
some very strange things.

In the global.asax.cs in the Application_BeginRequest function, I've
told the application to add to a Session["Hits"] variable. Everytime
I do a single request this number gets incremented twice. So I wrote
out all my page requests to a file to verify it.

My unexplained solution...
I backed up my entire project folder(v2.2). Then I deleted the
project from the folder and copied my previous version(v2.1) to the
folder. I opened IE and tested and I only got 1 hit per request.
Then I replaced my v2.1 with v2.2 again and it's still only getting 1
hit per request. This is good but I need to know why this was
happening. Could this be a wiggy .Net bug or something?

It was blowing up the log files and filling up the hard drive!
If anyone can explain I'd be very interested.
Thanks.
Mark

Jul 21 '05 #2

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

Similar topics

7
by: Garyrek | last post by:
Hi I have a requirement where I need to make a report for each auto dealer how many hits they got on specified date range, so for each car detail page I increment the counter and total it while...
7
by: Craig | last post by:
The code below hits the web server EVERY time the user mouses over one of the buttons. If you move your mouse in/out 10 times, there are 20 hits to the web server (10 for image.jpg and 10 for...
9
by: goks | last post by:
I'm using document.referrer method for tracking visits on my site. But it seems that, when someone finds my site with google, this method returns only: "google.com/search?q=xxxxx" (good) or...
4
by: louise raisbeck | last post by:
I have this scenario (simplified) function addnewdata () { check for partial match already in db for information entered by user if (partialmatch succeeds) { open new window aspx page (using...
1
by: Mark | last post by:
Hey people, I've been programming on our new C# MCMS intranet for about 3 months. This is my first real .Net project. I'm experiencing some very strange things. In the global.asax.cs in the...
5
by: matt.delvecchio | last post by:
hello, im working on my first production AJAX project, and im noticing something weird. when my clientside events fire (user clicks on various product rows), i make an xmlhttp call. in this...
6
by: amit | last post by:
hi group, i have a packet-sniffer which I feed it thru a javascript code. it shows me how many times a link or page is clicked or hitted (freshed) or using back button. the problem I'm having...
0
by: r_o | last post by:
hi i dunno if this is the right forum to post this , but i couldn't find any other alternative so here it goes i'm using MS index server on a winXP machine to deliver a small search engine for an...
32
by: Nu | last post by:
I want to protect myself from if someone with a fast connection hammers my site. It's not denial of service attacks, but offline downloaders (of course that don't show they're offline downloaders...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.