Jump to content

[SOLVED] Multiple Tabs / Windows


Cless

Recommended Posts

It would require a decent amount of processing but what you could do would be something to do with recording their IP address into a mysql database and then check that database every time a new page is opened to see if that IP address is currently already being used at the same time.  It would be somewhat difficult to do but would be possible.  You may have to go as far as to have an auto-refresh done on each page like once/minute to keep checking or something along those lines.  Try it out and post any solution you  have on here.

Link to comment
Share on other sites

Um, that would be a bad idea. You have no way of knowing if the user already has another page open or if they had just closed a browser window for your site and then tried to re-access it. So, they would be effectively blocked from accessing your site again for whatever time period you imlpemented for the time-out.

 

You *could* conceivably implement AJAX to have each page repeatedly "phoning home" to ensure they are still connected, but the user could have JS disabled and many users would consider that a malicious practice.

Link to comment
Share on other sites

I guess I would have to ask in this case what would be the point? You want to limit your users ability to view your site? If you have an issue with someone trying to flood your site you can have your host set ip limits on your domain where it will only allow one ip to connect so many times before it give the ip an error till it drops some of its current connections. Other then that I cant really see a point of limiting your viewers browsing abilities.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.