in reply to Script Unload??

Is there a better way than my stupid username/time thing?

Replies are listed 'Best First'.
RE: Re: Script Unload??
by btrott (Parson) on Apr 25, 2000 at 22:23 UTC
    Not that I know of, no. Because as the first poster wrote, HTTP is stateless, meaning that your server program has no way of knowing what's going on with the client (the browser).

    The only way around this is to implement your chat program in Java--the java client can keep an open socket to the server, so when the socket closes, the server knows that the client has "logged off."

    Of course, this probably also wouldn't work w/ your text-only browsers. :)

      Actually you might be able to get away with only a 1 pixel sized java applet that could maintain a connection to the serverl. (The only purpose it would serve would eb as a presence detector.)