Solved

Problem with SSI

Posted on 2004-09-12
10
166 Views
Last Modified: 2013-12-25
well here is an example of what happens. I have a poll on my website and let say it says 20 votes. Even if more people vote it still says 20 votes even when i refresh unless i delete my cookies and then refresh. then it updates. Is there any way to get it to update everytime i go to my site without having to delete the cookies?
0
Comment
Question by:reggiewolf
10 Comments
 

Author Comment

by:reggiewolf
Comment Utility
My website address is http://www.xboxoverload.com
0
 
LVL 48

Expert Comment

by:Tintin
Comment Utility
Very hard to tell without being able to see any code.
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
caching problem
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 5

Expert Comment

by:apparition
Comment Utility
How are you doing your polls? Maybe theres code in your poll that only allows one vote per IP address.
As Tintin said its very hard to tell without seeing the code.
0
 
LVL 10

Expert Comment

by:stu215
Comment Utility
add this tag to the top of your page to stop cacheing:

<meta http-equiv="pragma" content="no-cache">

~Stu
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 125 total points
Comment Utility
if it is a caching problem on a server, the meta tag does not help 'cause the caching server does not parse the page
In such a case su have to write proper HTTP headers
0
 
LVL 5

Assisted Solution

by:ITcrow
ITcrow earned 125 total points
Comment Utility

<META HTTP-EQUIV= "Refresh"       CONTENT      = 1>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">

May be get rid of:
<meta HTTP-EQUIV="EXPIRES" CONTENT="0">

Another PHP solution could be:
Add the following in your page <head> section:
<META HTTP-EQUIV=Refresh CONTENT="x; URL=<?php print $PHP_SELF ?>">
where, x is number of seconds for page refresh.

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now