Hi,
I read that i need to assign the userID to the client after login when using the custom login extension.
Can i send the userID through my extension response or do i have to make the client pull it from the server ?
I can't find it in the server docs.
Any tips ?
custom login userID
Each users comes with a userId and userName. You can confirm this by analyzing the incoming messages from the server.
You set the userId/userName like this:
smartFox.myUserId = thatUserId
smartFox.myUserName = thatUserId
where smartFox is your SmartFoxClient instance.
You set the userId/userName like this:
smartFox.myUserId = thatUserId
smartFox.myUserName = thatUserId
where smartFox is your SmartFoxClient instance.
Smartfox's forum is my daily newspaper.
It's u.getUserId()
Please refer to this API documentation --> http://www.smartfoxserver.com/docs/docPages/serverSideApi/index.htm.
Please refer to this API documentation --> http://www.smartfoxserver.com/docs/docPages/serverSideApi/index.htm.
Smartfox's forum is my daily newspaper.
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 22 guests