Hello all, I'm in the process of writing a cgi based chatroom, and I need to figure out a way to tell who is currently logged in the chatroom.
The web page is a frameset with three frames: the first one has a listing of the chatrooms you can go to, the second is the actual chatroom itself which is just an html page with a meta content refresh tag on it (refreshes every 5 seconds), and the last frame has the form where you type in the text to be displayed in the html page. The form simply rewrites the html file with the new text. The users of this chatroom actually log in via apache. I've thought about making the html file a perl script that can grab the env var that holds the name of the person using the browser. The script could update another flat file stating that the person's browser refreshed the page. I can then come up with some way to tell if a person has refreshed within the last 5 to 10 seconds, and if he/she hasn't, then I can say that the person has logged out. I'm not very experienced with cookies, but I'm kind of guessing that there may be an easier way to do this using cookies. Any help is appreciated. Thanks! -Stephen Spalding __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]