Another possibility, if you don't care what the url looks like, is to
encode the date
and a md5 (or other, your choice) checksum in the url. The checksum is formed
by putting a 'secret' where the checksum goes (at the end?) and checksuming
that. When you get a request back, first check the date,
Just create a model that stores the url and the expiration time. If
the url is hit past the expiration time, delete it, if it's still
within the time limit, display whatever you want to display. Obviously
this is for a small system, since you would be waiting to delete until
the url is hit, but
Take a look at this Lighttpd module:
http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSecDownload
You could implement something based on what the module above is doing.
On Apr 23, 12:26 pm, Faizan wrote:
> Wondering if there is a good way to generate temporary
Wondering if there is a good way to generate temporary URLs that
expire in X days. Would like to email out a URL that the recipient can
click to access a part of the site that then is inaccessible via that
URL after some time period.
Thanks,
Faizian
--
You received this message because you are
4 matches
Mail list logo