header("Cache-Control: no-cache, must-revalidate");



I'm having trouble trying to force cache disable when serving a page from apache2, php5.

Please enlighten me as to how I may accomplish this.  I'm concerned a user may leave a browser open which would compromise a web/database solution.

header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");


doesn't seem to work.

Also, can't seem to clear login form.

(in head)
<script language="_javascript_" type="text/_javascript_">
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>


(in body)
<td width="294"><input name="username" type="text" id="username" value=" " _onFocus_="clearText(this)"></td>


Are these bugs?  They both work on IE, and FF.  Still checking other browsers.

Please reply.
Thanks,

The Bean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]