hello i am trying to make an online guest counter . I am thinking about writing the ip`s of the users who are viewing the pages of my website to the database . But when someone leaves i should delete the ip . How can i know that someone has left the website ?