Solved

Problem with SSI

Posted on 2004-09-12
10
180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 

Author Comment

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

Expert Comment

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

Expert Comment

by:ahoffmann
ID: 12070130
caching problem
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 5

Expert Comment

by:apparition
ID: 12084929
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
ID: 12126956
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
ID: 12127829
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
ID: 12196451

<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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

705 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