Hello.
I have two php scripts.
page1.php and page2.php
page2.php only displays information to people that come from page1.php. All the other people are given a message "wrong address, go to page1.php and come back"
To access page2.php from page1.php i get the visitors IP, encode it in a variable called $nr and then pass $nr to page2.php.
page2.php?nr=my_ip_encoded
Page2.php compares $nr that gets from page1 with the users IP and if the two match then the page is displayed. If they dont match then the page displays an error message.
This implementation works fine with IE and NS but when it comes to AOL the people that access the page2.php get an error message because AOL gives the users an old version of page1.php. So the $nr variable that is cached from AOL is different from the IP address that the visitor has.
I have included the code below in all my pages to try to make the page uncacheable but they still cant access the pages. I have used the code below for about 1 week and i think that should have been enough time to clear all the aol caches.
Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Header("Pragma: no-cache");
Any way to make the pages uncacheable even for AOL proxies?
Any other way to solve this problem?
Will including a random number at the end of every request solve the problem?
Thanks.
Ed