Click or drag to resize
ChatUserHelperRegisterAndLoginChatUser Method (String, Boolean)
If CMS User is currently logged in, it logs him into chat. Parameter nickname is ignored in that case. If CMS User is not logged in, user is registered as anonymous chat user with nickname set to parameter nickname. Does nothing if chat user is currently logged in.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 9.0.0
Syntax
C#
public static void RegisterAndLoginChatUser(
	string nickname,
	bool isHidden
)

Parameters

nickname
Type: SystemString
If user is not logged in, he will be registered as anonymous user with this nickname.
isHidden
Type: SystemBoolean
If false, this user will be shown in online users on live site. If user was logged in as hidden before and now is logged in as 'not hidden' value will be overriden.
See Also