PDA

View Full Version : PHP expiry function


scriptblur
10-09-2002, 03:15 AM
hi guys,, can anyone help me please????

actually i am working on asp... but the asp expiry function cannot work.... so i think of using php to do the expiry function....
Just like the one codingforums do for it expiry page....

can anyone teach me??? thank you

Dylan Leblanc
10-09-2002, 11:19 AM
Do you mean the expire in the HTTP header?

There is the header() function.

Alekz
10-09-2002, 11:30 AM
Hi,

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0


Alex

scriptblur
10-11-2002, 03:58 AM
hi there....
i don really understand these header codes??? can explain..... can it use with asp???
How??? any special codes needed?? thank u...

Alekz
10-11-2002, 07:30 AM
Hi,
In ASP it's slightly different, but in fact the same happens...
I usually use for ASP:

Response.Expires = -1
Response.CacheControl = "private"

If You ask this in ASP forum You may get more detailed instructions...

Alex