Check if already lo...
 
Notifications
Clear all

Check if already logged in.

2 Posts
2 Users
0 Reactions
781 Views
(@o4karito)
Posts: 1
New Member
Topic starter
 

Hi, I have a newbie question - how can I check if somebody is using this login now?
Cause right now i can login a couple of times using the same account. 

So the question is: if there is a user with username"test", passowrd "pass" and I login using this data in the first instance of my game, how not to let another player to login using the same username-password.

Thanks!

 
Posted : 22/08/2014 12:01 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Since HTTP is an asynchronous protocol, you cannot block logging in with same user from different devices/platforms unless you really want to rely on the logout (that's not really suggested). Anyway, as you may have noticed, upon each login a new GUID value (session token) is generated and associated to the user in the database so this invalidates any request of the previous logged device.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 22/08/2014 4:38 pm
Share: