I have an expiry date in my database and I would like to redirect a web page when the expiry date for that page has been reached.
How would I do this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do that using a cache for your pages. I’m obviously not familiar how you store the expire dates, but I’ll presume you have [exp_date: url].
So:
And in
You can additionally add a SqlDbDependency to the Cache, so that it get updated when you modify the expire dates in the Database…