Auto-Login

Overview


Auto-login of user names to the ParaChat client is accomplished through passing the user's name from a log in page on your site to the ParaChat client, or by reading a cookie and placing a user name into the ParaChat client applet HTML. Through some minor customization to the ParaChat applet HTML, the user will be passed directly to the ParaChat room without being required to log in directly to the ParaChat room.

For example, if you place ParaChat in a member area, and you require users to authenticate themselves to gain access to a member area, their user name can be passed to the ParaChat room without requiring a secondary log in. User authentication is a function of your webserver, and not of ParaChat. ParaChat is already configured to accept authenticated user names.

Required Parameters


There are 2 essential parameters to add to the ParaChat client applet code to utilize auto-login. The parameters are:

    <param name="ctrl.LoginOnLoad" value="true">
    <param name="ctrl.Nickname" value="<user name variable>">

The ctrl.LoginOnLoad parameter tells the chat server to allow a user to be automatically logged in to the ParaChat room. The ctrl.Nickname parameter is where you will need to place a user's name that is read from the cookie. For example, if a user is logged into your site as "ParaChat", then the correct format for the ctrl.Nickname parameter after the cookie is read would be:

    <param name="ctrl.Nickname" value="ParaChat">
A live sample of the Auto-login feature is available in the Samples area on our site. Please visit http://www.parachat.com/samples/prosample12.html. Although this sample uses Javascript to pass the user name through the URL and into the chat room on the next page, any scripting method that you currently use to pass user information from page to page can be implemented.


Optional Parameters


There are 3 optional parameters to add to the ParaChat client applet code to utilize auto-login. 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>">


Home | Hosting | Server | Features | Samples | Chat Now | Web Tools | Help | Affiliate

©1996 - 2006   M Square, Inc. |  Privacy Policy