record user activity based on pages loaded 2

each time a page is loaded, it will update that users time stamp on the
database. It will also check and see if other users have an up to date
time, if they don't it will delete them, and hence update the chat
window.