473,395 Members | 1,790 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,395 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 1376
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.