I need someone to write a script that will echo one of two codes depending on the time a person has been on the page.
If the person has been on the page for less than an hour they can reload fine, but once the page has been viewed for more than an hour the page will load a different code (in fact a meta redirect code to take them to a new page)
Also, after exactly 30 minutes of the one hour being used up I want the script to allow the user back on the page (without the redirect code anymore) and to be given one hour more to view the page.
I just need it in the form of a script that echos blank space (or nothing) for the one outcome and echos a meta redirect code I can modify myself later for the other outcome
Here is my attempt! Though you can use php, java or anything else if you like!