Hi,
My app doesn't use username to authenticate user instead the user logged in webapp and i use flashvar to pass a token to flash, then i use this token to get user's info like username.
I used user.setName to change username but sfs still use that token to identify user connection, so when i close the brower's tab and reconnect, sfs doesn't let me in because of "Login error: Another user is already logged with the same name"
Thank you.
change username when logged in
You can change the name at login time.
See login tutorial:
http://docs2x.smartfoxserver.com/Gettin ... wtos#item3
See login tutorial:
http://docs2x.smartfoxserver.com/Gettin ... wtos#item3
Re:
Lapo wrote:You can change the name at login time.
See login tutorial:
http://docs2x.smartfoxserver.com/Gettin ... wtos#item3
My apologies, but this document seems to be missing or moved. I'm wondering how to go about changing the username from the java code at login time. Thanks!
Re: Re:
marsoups wrote:Lapo wrote:You can change the name at login time.
See login tutorial:
http://docs2x.smartfoxserver.com/Gettin ... wtos#item3
My apologies, but this document seems to be missing or moved. I'm wondering how to go about changing the username from the java code at login time. Thanks!
You can find it here:
https://smartfoxserver.com/blog/how-to- ... tom-login/
See point #4 in particular.
Hope it helps
Who is online
Users browsing this forum: No registered users and 60 guests