Welcome to WebmasterWorld Guest from 54.156.56.73

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Duplicate log entries

     
6:41 pm on May 4, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:July 30, 2004
posts: 81
votes: 0


Every time someone (or something) GETs one of my web pages, I log the call from PHP. It's a simple SQL INSERT statement that saves a few values in $_SERVER[''] to MySQL.

Often there will appear two log entries for the same GET, within one second of each other. This does not happen consistently. Sometimes there are no duplicate records, very infrequently three records. I've verified that these are for the exactly identical values of $_SERVER['HTTP_REFERER'], and that these calls appear only once in the source code flow of logic.

What might be the cause?

10:13 pm on May 4, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


Have any of these happened while you are testing, and can you duplicate it?
within one second of each other.

I watch people double-click all the time, for many users it's just how they navigate, never knowing a single click is required. This could account for part of it.

The second is just a "suspicion" of mine. I'm on satellite, and satellite is inherently a proxy server. My requests are sent to the proxy and routed through. Sometimes I suspect something gets hosed up in the routing and the proxy doesn't "know" if a request got through so it sends it again. I have no facts to verify this, but over the course of time I've experienced some oddities on some resources - for example, quite often on this site I get a double post and am not sure if this is an issue with the server here or my connection.

10:50 pm on May 4, 2009 (gmt 0)

Junior Member

10+ Year Member

joined:July 30, 2004
posts:81
votes: 0


I just tested the double-click hypothesis from my own PC, and saw that there are double log entries regardless, although not consistently.

My web site is on a GoDaddy (just did a search to verify that it's OK to mention them) shared server. Could this set-up relate to your second scenario?

In any case, thanks.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members