Unique login in different zone

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
melojoy
Posts: 35
Joined: 02 Oct 2006, 21:27
Location: Italy

Unique login in different zone

Post by melojoy »

Hi,
I'have a game multiuser application with different zones.

In each zone smartfox provide an unique username login. I have to extend this for all the zones: If I'm joined in a zone, the same user at the same time can't connect and join in a different zone. It's possible? Ther're some configuration option or I have to implement a specific extension? What metod can I use?


Thanks
Maurizio
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Ciao,
normally a user would not be able to log into multiple Zones. The only way to do it is starting multiple clients.

A very simple way to avoid the problem is using the database. If you have a DB with credentials you could add a field that is set to true or any value indicating that the user is logged, and when it disconnects you set it to false.

This way you can check if the User is already logged in some other Zone.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply