I'm trying to do a small app similar to omegle 's random web chat, and there are some things you've added, but it's essentially a web chat. But I'm a web developer.
The problem is how to maintain user login status. That's, when you've logged on to the user, you can exit when you close the page, rather than using a link.
At present, the method has been attempted:
1, using ajax to refresh the message, login. A <event that responds to body> when exiting, sends a post to the server.
Issue: there are different support for browsers, resulting in browsers that aren't responding, or the reason for using jquery. Post may not respond to some asynchronous events in?
2, use long connection to maintain logon status.
Question: whether long connections can feel the user 's disconnect. If you want to develop with a language similar to php, the long connection won't take up system resources?
3, using flash.
Question: this is what I can think of now, but it's a little simple problem.