Click to See Complete Forum and Search --> : redirect viewer if someone is .......


bigdaddy
06-05-2003, 02:32 PM
I could us help on this one.. How would you cause a viewer
to be redirected if someone else is already viewing the page
and when someone leaves this page notify viewers at the redirected page that it is open.

Thanks
BD

goofball
06-06-2003, 12:56 PM
I'm no expert on this subject, but it sounds like what you're trying to do is more trouble than it's worth.

The only thing I could think of doing, is having your page written as an executable script - when the script runs, have it open a socket (TCP) connection to another program that monitors that connection. Kindof like a chat server would monitor all of its chat clients. Then you could have your original script either print out the correct HTML content (if it has the only current connection), or redirect to a page with the message "this page is busy."

I couldn't get you the code, though, as I'm still trying to figure out that kind of program.

Good Luck! (let me know if you get it working)