I have a user log file that everytime the user moves form page to page a entry in recorded in the log with the username,date,time,action,and ip.
I also have a table that holds all the user information such as user_id,user_pw,active,permissions.
I have created a function that gets all the users where active is set to 'Y'. From here I am looping in a while loop and for each user I want to get the log entries from todays date.
I have all this taken care of but I need some help when it comes to comparing the times. If the last log entry is 10 minutes or greater then the current time, then the user table will be updated to set the user active status to 'N'
I hope you can help!! Let me know if you need some further clarification.