Looktrne Posted June 24, 2008 Share Posted June 24, 2008 Hello everyone I help out fellow dating site owners with a script I have worked with for a couple years. on a few occasions like 3 out of 100 I found sites that cache the pages and the pages are therefor not dynamic and these same sites ask users to log in more than once at times... so it seems on top of the dynamic pages not being refreshed there is also a cookie issues. I check the phpinfo.php settings and can not find the problem I tried to disable cache through html and php I used this in the php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past the pages are still being cache and I don't understand why? this same script runs great on many other servers... please someone give me an idea... you can see the site that is cache the pages at: http://jewishsoulsearch.com user: test pass: test if you log in... then click log out... click back and refresh you will still see the same page when it should bring you back to the login box because you are logged out.. you will see what I mean if you test it on this working site: http://abmatch.com user:test pass:test when I log out and click back where the members menu is if I refresh I am prompted to log in.. this is working correctly... only if I clear the cache manually will the other site function properly.. how can I over ride this for firefox and IE.. please any help or advise is appreciated.. Paul Link to comment https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/ Share on other sites More sharing options...
DarkWater Posted June 24, 2008 Share Posted June 24, 2008 Maybe the PHP on the server is actually cached? =X Link to comment https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/#findComment-572765 Share on other sites More sharing options...
Looktrne Posted June 24, 2008 Author Share Posted June 24, 2008 please explain how I check this? phpinfo for both sites is available here http://jewishsoulsearch.com/phpinfo.php http://abmatch.com/phpinfo.php Link to comment https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/#findComment-572804 Share on other sites More sharing options...
Looktrne Posted June 24, 2008 Author Share Posted June 24, 2008 Still looking for help on this if anyone can help? Link to comment https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/#findComment-573643 Share on other sites More sharing options...
Looktrne Posted June 25, 2008 Author Share Posted June 25, 2008 Ok I tried to repost this topic to see if I could get any help but it got erased so I guess I have to make this one look like there has been responses when there has not... it's all me here.. Can anyone help me out here? Link to comment https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/#findComment-574513 Share on other sites More sharing options...
DarkWater Posted June 26, 2008 Share Posted June 26, 2008 Once again, if the script works on several servers but doesn't work on one or two, the server may have some sort of caching in place or something. Talk to the host of the servers. Link to comment https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/#findComment-574537 Share on other sites More sharing options...
Looktrne Posted June 26, 2008 Author Share Posted June 26, 2008 How can I check this myself... I can change settings myself if I can find out what settings are not correct. and even if it is a setting I cannot change I would like to tell them what needs changing. it is alot easier to deal with a host when you have a clue as to what is wrong... so if anyone else could help please let me know Paul Link to comment https://forums.phpfreaks.com/topic/111585-headers-wont-disable-cache/#findComment-574696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.