Jeff Sittler wrote:
> In ASP, I ahve used:
> <%
> Response.CacheControl = "no-cache"
> Response.AddHeader "Pragma", "no-cache"
> Response.Expires = -1
> if Session("svUsername") = "" then response.redirect
> "../login/accessDenied.asp"
> %>
If you still have that site in ASP around, look at the header output from
it.
Use a Un*x box to do this:
telnet YOURASPBOXIPADDRESSHERE 80
GET /default.htm HTTP/1.0
Hit return twice after that GET line, and you'll see the headers and HTML
and whatnot that a browser sees.
What you will find is that ASP turns your Response.Expires into stuff like
this:
> header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
> header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
only with the time setting for 5 minutes from now. So, like, change that
July 26th date to be the current time plus 5 minutes.
PHP has built-in function to give you the GMT string from any given time,
so it's just somedatefunction(time() + 60 * 5) only I forgot the name of
the PHP function so you'll have to look it up. http://php.net/date
--
Like music? http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]