
June 7th, 2004, 08:45 AM
|
|
|
Quote: | Originally Posted by battlemanj I am sure there is an easy answer to this but I don't know it, which is why I am asking
Its hard for me to explain but basically what I am trying to do is this:
I am encrypting a string and I take a timestamp (i used #DateFormat(now(), "HHMMSS")# for the timestamp) when the string is encrypted, the string is sent along with an ID via URL variable. That timestamp is stored in a database. Then a query is made from another page to find the ID and I need to compare the time the timestamp from when the string was encrypted was taken to when the query was made. If the difference in the times is greater than 30 seconds I have to redirect them to a failure page.
Any ideas? I guess to sum it up, how do I compare the times and decide if the difference is greater than 30 seconds.
Thanks in advance |
read up on dateDiff
|