i have once posted this topic before but i could not fix my problem. my problem is when i click o a link for the first time then it doesnt cause any problem but when i click for the second time it gives me the page without refreshing it same as i click on it for the first time but when i click it for the third time then it gives me refreshed page.
my page actually show databae contents so during my first and second click if i chenge my databse it shows me previous records but if i click for the third time then it gives updated record.
anybody can tell me how can i resolve this issue.
about refreshing page
Moderator: General Moderators
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
sounds to me like a caching problem
try this code in the <head></head> of your page
or for netscape
Hope im on the right track.
Good Luck
try this code in the <head></head> of your page
Code: Select all
<META HTTP-EQUIV="Cache-Control" CONTENT ="no-cache">Code: Select all
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">Good Luck
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
add
a refresh to the page after the script parses like so:
something like that... hope this helps 
Code: Select all
<?php
some stuff
echo "<script>window.reload(true)</script>";
?>Add this in the FIRST line of your page :
Code: Select all
<?php
header("Cache-Control: no-store, no-cache, must-revalidate");
?>