i have a photo album using php and mysql and using phplib for authentication and I want to be able to update certain records, but the problem is I have to relogin all the time to see the changes. Is there any way that I can get around it maybe update the session or something so I see the changes right away.
thanks in advance
Please clarify your problem! But, as I understand, you have admin tool, in which you add your pictures, and want to see changes as user, right? In this case soultion is very simple: install second browser - mozilla, opera...
It's a site where anybody can add pictures and then I want to be able to make changes and it stores the first visit to the page and so that is all I see I. I have var $allowcache = "no" in session.inc.I have to actually go in and delete the history of the browser for it to work. There has to be a better way. Don't know what else to do.
Thanks
You need something like this:
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $date) . " GMT"); header("Expires: Sun, 01 Jan 2040 00:00:00 GMT"); header("Cache-Control: max-age=10000000, s-maxage=1000000, proxy-revalidate, must-revalidate");
Thanks man I'll give it a try.