Page 1 of 1

_server.loginUser responding strange...

Posted: 27 Jan 2011, 08:19
by gbala
Hi guys,
I am facing a strange problem can any one help me out....

In my server side extension i am calling _server.loginUser() function where it is working fine for most of the user.

For some particular user the _server.loginUser() is throwing error when trying to log in for specific room other room for the same user is loading fine. If i keep refreshing for more that 2 or 3 time it is getting logged in.
When i try tracing the response error it says "User already logged in".

I also try placing the 4th parameter as true even that dose not help me out.

Do anyone has the same problem, can anyone help me out me to fix this issue.

Posted: 28 Jan 2011, 03:59
by gbala
No one to help me out... :( :( :(

Posted: 28 Jan 2011, 17:42
by BigFIsh
When and where about in your extension are you attempting to log in a user to a room?

This issue may be caused by 'ghost user' (see bottom of http://www.smartfoxserver.com/docs/docP ... ooting.htm)
I also try placing the 4th parameter as true even that dose not help me out.
This could be a bug and you're not the first to report this issue. Please specify your OS, Smartfox version and the steps used to reproduce it (if possible).

Try manually disconnecting the user by using _server.disconnectUser or alternatively _server.logoutUser method prior to re-logging in. Does this work?