Auto Log-in of your Web site's registered users into your chat room is accomplished by passing a user name variable from your database, session cookie, or through the URL, and placing it into the chat applet HTML. Through some minor customization to the chat applet HTML, the user will be logged directly into the chat room without requiring a secondary log-in through the chat client's log-in panel.
|
Hosted Solutions |
|
Server Solutions |
|
|
Basic |
|
Enterprise |
|
|
Advanced |
|
Event |
|
|
Professional |
|
Server |
|
For example, if you place your chat room in a members-only area of your web site, and you require users to authenticate themselves to gain access to the member area, their user name can be passed into the chat room to automatically log them in with their registered user name. User authentication remains a function of your webserver, and not of the chat client or server. Your chat service already includes the Auto Log-in feature.
Required Parameters
There are 2 mandatory parameters to add to your chat applet HTML to utilize the Auto Log-in feature. The parameters are:
<param name="ctrl.LoginOnLoad" value="true">
<param name="ctrl.Nickname" value="<user name variable>">
The 'ctrl.LoginOnLoad' parameter tells the chat room to permit a user to be automatically logged in to the chat room without displaying the log-in panel. The 'ctrl.Nickname' parameter value is where you need to pass the authenticated user name variable. For example, if a user is logged into your site with user name "Mike", then the correct format for the 'ctrl.Nickname' parameter value after the user name has been passed would be:
<param name="ctrl.Nickname" value="Mike">
Optional Parameters
There are 3 optional parameters that can be added to the ParaChat applet HTML, which can be utilized with the Auto Log-in feature. The parameters are:
<param name="ctrl.EmailAddr" value="<user's email or other info>">
<param name="ctrl.RealName" value="<user's name or profile>">
<param name="ctrl.Password" value="<user's password>">
HINT: The values for
the 'ctrl.EmailAddr' and 'ctrl.RealName' parameters can be seen publicly
within the main chat window if a user's information is displayed by another
user. Therefore, use caution in passing this private information into
a public chat room unless your application of the chat software warrants
its use.
The 'ctrl.Password' parameter is used only to pass a user's password to the chat server for authentication by the chat server, and not by your database. This parameter should only be used if a user profile exists on both the chat server as well as in your own database, and the password in your database matches the user's password on the chat server. There is no requirement to populate the 'ctrl.Password' value with a user's password from your database.
HINT: If the admin user
name and password that you supplied is also in your database, you would
need to pass this user name and password into the chat applet HTML so
you can access the chat room's administrative functions. The chat server
requires a valid administrator user name and password to be supplied in
order to gain access to the administrative features.