My product, also written in php is similar. What you need to do is, rather than just stamp a time for login/logout, is create a session object on server side. I have a simple process, written in c,...