[thelist] Expiring pages

Craig Saila crsaila at yahoo.ca
Sat Sep 28 13:16:05 CDT 2002


fstorr wrote:
> I'm working on a project that needs have have certain pages expire after
> 12 months.  Is there a meta tag that will do this for me (I'm after the
> simplist solution to this as it won't be me updating the pages).  Also

You can try the meta expires tag:
<http://www.submitcorner.com/Guide/Meta/expires.shtml>

> is there a simple way to re-direct expired pages to a "the page you're
> trying to view has expired" page.  If this can be done in Javascript,
> this would be ideal as I don't have the luxury of ASP, PHP etc for this
> job.

Obviously, server-side would be better, but you could use JavaScript's
Date object:
<http://developer.netscape.com/docs/manuals/js/client/jsref/date.htm>
If the date is greater than your expiry date, you can then write a
simple redirect.

--
Cheers,

Craig Saila
------------------------------------------
craig at saila.com  :  http://www.saila.com/
------------------------------------------





More information about the thelist mailing list