I'm trying to set up a feature where after accessing a wepage, the user is not allowed to return until they have been away for x minuets. It's on a login system, so I don't need to worry about IPs etc. What I had in mind was as following:
- User accesses page; current time (of access) is logged (in database?).
- User tries to return to page; get time since last access (from database?).
- If user has been away for x minuets, allow page access.
- If user has been away for less than x minuets, block page access.
All this would be done (I guess) with a MYSQL database. Anyone now how to achieve this? I just spent the last 3 hours trying and failing...I guess I don't know enough.
Thanks in advance!