Hi,
I am building a automated image gallery + CMS for a client, but keep having the weirdest caching problems.
I have figured out that when I use my sessions file, the cacheing goes all screwy, not remembering what page its on, or showing past pages instead of the new ones. Only repeated refreshes convinces my browsers (Firefox 1.5 & Safari 2) that this is actually a different page!
PHP Version 4.4.2
Have tried all kinds of ways to stop the cacheing, such as:
// No cache
Header('Cache-Control: no-cache');
Header('Pragma: no-cache');
And other meta tags to stop the cacheing... with no luck.
The only thing that seems to ease (but not stop completely) this weirdness is disabling my sessions file. Which I obviously need for certain things!
Sessions.inc.php
<?php
session_start();
session_register("album"); // Album id
session_register("Gallery"); // Gallery id
session_register("meta_view"); // Meta View (Theme / Mood / Keywords)
session_register("advanced"); // Advanced Options
?>
.
Anyone got ideas on this?
Cheers,
Yari