[nycphp-talk] Issue with session_destroy()
tedd
tedd at sperling.com
Sat Dec 2 13:35:10 EST 2006
>
> > > How do I ensure that my application pages are loading a fresh copy?
>> > If I can make that happen then presumably it will prevent this issue.
>> >
>> > The strange thing is that this doesn't seem to happen for another
>> > application I built but I haven't been able to find a difference in
>> > the code I wrote. (Am testing both in the same browser.)
>> >
>> > Thanks,
>> >
> > > -Aaron
Aaron:
I use this:
<?php # nocache.php
// this script prevents all caching
// expires on any past date
header ("Expires: Mon, 26 Jul 1997 05:00: GMT");
// last modified at current date and time
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
// for HTTP 1.1:
header ("Cache-Control: no-store, no-cache, must-revalidate");
header ("Cache-Control: post-check=0, pre-check=0", false);
// for HTTP 1.0
header ("Pragma: no-cache");
?>
Anyone see any problems with it?
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
More information about the talk
mailing list