473,513 Members | 3,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need to know this! (hits or refersh)



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 is that it shows it on one computer and on a 2nd
computer it doesn't increase the number of hits when I refresh the page
or use the back button.

Can somebody tell me where should I focus to find the problem? or if
you know it please give me an advice.
thanks

Jul 25 '06 #1
6 1403
Can somebody tell me where should I focus to find the problem? or if
you know it please give me an advice.
Sounds like a caching problem. Did you try to disable caching on the
page. Put this in your header:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="Sat, 1 Jan 2000 00:00:00 GMT">

Vincent
Jul 25 '06 #2

Vincent van Beveren wrote:
Can somebody tell me where should I focus to find the problem? or if
you know it please give me an advice.

Sounds like a caching problem. Did you try to disable caching on the
page. Put this in your header:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="Sat, 1 Jan 2000 00:00:00 GMT">

Vincent
Hi Vincent,

Yes I did try it already. As far as I know this type of meta statements
are not useful but thanks indeed for your response. I'm trying to find
a way to control browser's cache using javascript or maybe someone can
come up with a better solution.

thanks agagin.

Jul 25 '06 #3
Try appending the url with a random querystring ?foo=randomValue
So, every hit to the page is requesting a different url

Jul 26 '06 #4

amit wrote:
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 is that it shows it on one computer and on a 2nd
computer it doesn't increase the number of hits when I refresh the page
or use the back button.
Unless you control all the computers' settings yourself, then you can't
know if they go back.

For example, under IE / Tools / Settings you can set the page to be
refreshed Never. If IE has the page in cache, it's not going to go out
again... unless perhaps you set the page to expire immediately in its
HTTP header... I'll have to test that again.

Kev

Jul 27 '06 #5

Kevin Darling wrote:
amit wrote:
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 is that it shows it on one computer and on a 2nd
computer it doesn't increase the number of hits when I refresh the page
or use the back button.

Unless you control all the computers' settings yourself, then you can't
know if they go back.

For example, under IE / Tools / Settings you can set the page to be
refreshed Never. If IE has the page in cache, it's not going to go out
again... unless perhaps you set the page to expire immediately in its
HTTP header... I'll have to test that again.

Kev
Thanks now it is working by generating a random number that is
possible. In my case, I'm passing time and since it keeps changing
(seconds) to everytime I request the page.

Thanks,
Amit

Jul 27 '06 #6

Paul Davis wrote:
Try appending the url with a random querystring ?foo=randomValue
So, every hit to the page is requesting a different url

Hi Paul,

Your were right!

Thanks now it is working by generating a random number that is
possible. In my case, I'm passing time and since it keeps changing
(seconds) so everytime it requests the page.

Thanks,
Amit

Jul 27 '06 #7

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

Similar topics

5
2311
by: Michele | last post by:
What does the CIO need to know about Sequel Server administration?
10
2203
by: Alan Lee | last post by:
Hi i am writing a small simulation for a bunch of atoms jumping around on a surface. I know i am a crappy programmer since i am not very familiar with object oriented languages. I am woindering if anyone can tell me why my forward class declarations not working. the member function findpaths can't seem to access the class Board when I try...
6
5724
by: news | last post by:
I need some concise, easy to grok examples of what .Net (preferably C#.Net) has over just using old ASP or PHP with JavaScript. See, I'm a PHP guy, and while I started server-side scripting with ASP, I hate it. But last year I had the opportunity to work with a company that was developing sites in VB.Net. And I was wowed! The stuff they...
15
4565
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never...
13
3475
by: Javad | last post by:
Hello I know that I should get the information of windows internet connections by using "rasapi32.dll" library, and I also have some sample codes, but I can't make them work. My exact need is to get the "UserName" of a connection. How is it possible? plz hlp thnk u
15
2153
by: Jess | last post by:
Hello, Sometimes declarations are all what we need when we define/declare classes (or functions?), but sometimes we need definitions. I learned that if we define a class (B) that has an object (a_obj) of a class type (A), then we need to define A as well, but if B has a pointer to A, then we only need to forward declare A. I was told this...
2
1743
by: =?Utf-8?B?am9lb2ppaA==?= | last post by:
Most students do not have enough time to do their homeworks, assignments, college papers, etc alone. Also most of them, even though they know what to do with respect to their writing assignment, find it very hard to overcome the inertia and hence can't just get started. Besides, Maths problems are always a source of worries and nightmares to...
6
1541
by: Scotty Montague | last post by:
hi guys! i own 2005 ford mustang convertible and i want to make it go faster. my friend barry's told me that i can reprogram computer in my car and boost the horses. i assume computer program is in c and that is why i ask 4 u help. what i need 2 do? i am expert in c so if u could show what i need 2 do i will know what 2 do plz beleeve me. i...
3
3056
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
In the page_load event i need to see which event fired the post back. what here allows this. I specificly want to know if the enter key was pressed. but i need to check for others. -- (i''ll be asking a lot of these, but I find C# totally way cooler than vb and there''s no go''n back!!!) thanks (as always) kes
1
1697
by: lmjoseph | last post by:
Hey guys & gals - I need to know what I need. Im trying to start an online business directory. If I wanted to build a hybrid site between yellowpages.com and angieslist.com, what do I need so I can know what to ask for when I ask for help building the site?
0
7177
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7559
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7123
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5701
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5100
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.