Page 1 of 1

Stopping players from opening multi tabs or multi browsers

Posted: Wed Oct 28, 2009 8:45 am
by Az_Critter
I would like to know if there is a way, in PHP, to stop my players from opening more than one tab, or more than one browser, at a time.
I have searched high and low, but have not been able to find an answer to this question. I realize, I may be searching with the wrong terms or maybe the wrong code.

The problem I have is that in my game, there is a dungeon area, where a player can click on lists of monsters, opening each monster attack in a seperate tab. This allows them to skip a link, which takes them back to the main dungeon screen, and therefor allows for super fast leveling.
They can also play from more than one browser, which I can see as possibly causing problems down the road.

I want to stop these two actions, but don't know how yet, and don't know where to look for information on it. If you can suggest some code, or even some links that will show me how to accomplish my goal, I would appreciate it very much.

Thank you much,
Az_Critter :)

Re: Stopping players from opening multi tabs or multi browsers

Posted: Mon Nov 02, 2009 12:08 pm
by Az_Critter
No one has an answer or any idea of where to look??

Re: Stopping players from opening multi tabs or multi browse

Posted: Mon Nov 02, 2009 3:42 pm
by McInfo
Create a way to determine what game locations are connected to other game locations. Compare the requested location to the locations directly connected to the current location. If the requested location is connected, allow the move. The virtual map of game locations would be represented by an array or database table(s). The current location would be stored in a session variable.

Alternatively, or additionally, pass a sequential counter variable along with every link. Keep another counter in a session variable. If a request is made where the two counters are not synchronized, the request was not made in sequence. For added obscurity, concatenate the public counter with a private string and use md5() on it.

Edit: This post was recovered from search engine cache.

Re: Stopping players from opening multi tabs or multi browse

Posted: Tue Aug 31, 2010 11:46 am
by Az_Critter
Thanks for the answer. :D

I did find another way to slow them down. I added in a time limiter so that if they move too fast, they now get a message that they tripped and bumped there head, virtually allowing the monster to escape. :lol:

I will definitely do as you suggested though, as I think I can make that work, and it sounds like it would be effective. Thank you very much! :D

Re: Stopping players from opening multi tabs or multi browse

Posted: Tue Aug 31, 2010 12:32 pm
by shawngoldw
Can't you just set a cookie and just check to see if it's already there?

Shawn

Re: Stopping players from opening multi tabs or multi browse

Posted: Tue Aug 31, 2010 5:58 pm
by Az_Critter
Hello Shawn,

I've learned a lot since I bought the game and have been working on the codes. I've learned everything I know through online tutorials, help forums, books, and trial and error. While I've learned tons already, I still have tons more to learn. I haven't had a chance to research how cookies work yet, but I will definitely do so as soon as I can find time. Thanks for letting me know. :)

Re: Stopping players from opening multi tabs or multi browse

Posted: Tue Aug 31, 2010 6:09 pm
by Gargoyle
I would like to know if there is a way, in PHP, to stop my players from opening more than one tab, or more than one browser, at a time.
in short: no.

you can, however, use a user's session to remember what monsters a re currently active and give an error message if the user tries to get one twice.