i have developed a chatroom running with js/ajax on client, and php for server side storing data in mysql. My only real issue is the method i use in having registered (site members) being logged in right as they enter the page -- And being logged out when they leave; thus being added/removed from the table...
possible methods for this that i tried but dont work well for me are using onload/onunload which are not really reliable enough.
i though about using Java as some applet in the page for monitoring and passing data more easily, but im not sure what to use and i haven't used java that much so.. For the chat I need a better way of managing the users IN real time, more reliably....
or possibly a timeout using php time() recoreded last updated ping greater than a value then user is assumed logged out
does anybody have experience in creating chatrooms? or have any knowledge of Java and possible implements to this which could guide me to the right direction?
tyvm
possible methods for this that i tried but dont work well for me are using onload/onunload which are not really reliable enough.
i though about using Java as some applet in the page for monitoring and passing data more easily, but im not sure what to use and i haven't used java that much so.. For the chat I need a better way of managing the users IN real time, more reliably....
or possibly a timeout using php time() recoreded last updated ping greater than a value then user is assumed logged out
does anybody have experience in creating chatrooms? or have any knowledge of Java and possible implements to this which could guide me to the right direction?
tyvm