EastIndian
Technical User
(Forgive, I am still a beginner..)
I am wanting to determine if a user's IP has accessed my site in any random time between now and the past 5 minutes. (I know cookies are the way to go for tracking, but please bear with me). I am currenly collecting the IP along with time that site was accessed in a database. (I know this can get really big, it's just a temp tracking process for study). Can anyone give me a hint how to write a statement that that will generate a random time in the past 5 minutes and function to say "if the current IP has accessed this site between now and some random time within the last 5 minutes, then abort." Any suggestions would be welcome. Thanks in advance.
I am wanting to determine if a user's IP has accessed my site in any random time between now and the past 5 minutes. (I know cookies are the way to go for tracking, but please bear with me). I am currenly collecting the IP along with time that site was accessed in a database. (I know this can get really big, it's just a temp tracking process for study). Can anyone give me a hint how to write a statement that that will generate a random time in the past 5 minutes and function to say "if the current IP has accessed this site between now and some random time within the last 5 minutes, then abort." Any suggestions would be welcome. Thanks in advance.