Reply to Re: [PHP] Preventing data from being reposted?

Your name:

Reply:


Posted by Rory Walsh on 03/03/05 17:47

Cheers, yeah closing and opening the browser was something that I didn't
work out straight away, that was frustrating, I'll check out your
headers, thanks again for the help,
Rory.

Jochem Maas wrote:
> rory walsh wrote:
>
>> I'm pretty sure I am looking at cached pages but the problem with this
>> seems to be that some browsers support these header directives and
>> others don't, i.e. Firefox.
>>
>> The following work in IE but not Firefox
>> header("Cache-control: private");
>> header("Cache-Control: no-store, no-cache, must-revalidate");
>>
>
> I'd guess that should work but maybe the 'private' throws firefox a
> curveball, anyway here
> are the headers I use to 'privatise' logged in sessions:
>
> header("Expires: ".gmdate("D, d M Y H:i:s",
> strtotime('1-Jan-1980')) . " GMT");
> // always modified
> header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
> // HTTP/1.1
> header("Cache-Control: no-store, no-cache, must-revalidate");
> header("Cache-Control: post-check=0, pre-check=0", false);
> // HTTP/1.0
> header("Pragma: no-cache");
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация