Michael Morris |
12-27-2004 01:43 AM |
Quote:
Originally Posted by Bison
To prevent users from opening up several windows to your forum? Reason why I ask is that some guys login and have 4 or more windows open, and for every window after the first is read as a "Guest" session.
How can I control the amount of connections, one user can make per login?
|
You can do this through javascript. When the user opens the first window the javascript in the page assigns a name to that browser window. If it can't (the name is already in use) it closes the window.
Now as to the exact code, I don't know it offhand - but go look on some javascripting sites.
Meanwhile you'll be putting the script in your headinclude template.
Note that this won't stop someone from opening multiple windows using multiple browsers on the same machine.
|