Hi all
I am writing a PHP CMS and certain parts of it require to be locked out to other users if a user is already accessing that section. I have managed to get all ths working by recording the date/time someone accessed it and the user id of whom is viewing those specific sections. I can clear that locked record IF the user exits the forms via my buttons however I need a solution that would allow me to clear the locked record if the user either:
a) closes the browser
or
b) loses internet connection
Are there any common solutions out there that I could maybe implement? Just the theory behind the process will be sufficient, I don't need any code.
Many Thanks
Doug