I've built an EIS system that generates bar charts on the fly and stores them as png files. My problem is, that the same page can create different charts by clicking on a different users name to view their reports. When you click on a different user to change the bar chart, the old one still shows, but if you hit refresh, it shows the new one.
The charts are being generated from session variables too.. so I don't know if it is a caching problem with the png file, or the session variables.
I've tried using this:
header("Cache-control: no-cache");
header("Expires: " . date("D, d M Y H:i:s") . " EST");
I dunno.. maybe its wrong.. but it doesn't seem to work.
Please help.
Thanks!