I need a PHP script that will do the following:
1. When a form is submitted, set a cookie on the user's browser
2. When the user visits a webpage, then check the date of the cookie and if it's less than 7 days old, display a countdown timer that tells the user how much time is left until 7 days is over.
3. If the cookie is older than 7 days, then redirect to a new page.
My servers run PHP so please only bid if your solution is a PHP script.