topical media & game development
lib-ch-example-ref-wcgi-setExpires.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <wcgi.h>
int main() {
class CResponse Response;
int expires_def, expires_cur;
// get the default value of the Expires
expires_def = Response.getExpires();
// put the value of the Expires as 10 minutes
Response.setExpires(10);
//get current value of the Expires
expires_cur = Response.getExpires();
Response.begin();
Response.title(L"Test of Response.setExpires and Response.getExpires");
printf("<H1> Test of Response.setExpires and Response.getExpires </H1>
\n");
printf("The default value of the Expires is : \%d minutes <br>\n", expires_def);
printf("The current value of the Expires is : \%d minutes <br>\n", expires_cur);
Response.end();
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.