Home > Products > 123 Flash Chat > Demo > How to Auto-Login a user in chat?
How to auto-login a room?

How to Auto-Login a user?

123 Flash Chat Server supports Full integration with external portal or forums database. More than integration, 123flashchat even allow users auto-login chatroom without entering username and password again once they've logged in your portal or forum.

Users can auto-login in two ways: as registered user or as a guest.

a) Login a registered member:

As we stated in the quickstart.html, 123 Flash Chat is inserted into your webpage with some html code.
By adding parameters into the code, you can enable auto-login. For example if username = myusername, password = mypassword, the code you should add into your html will be as follows:

Sample code:

In this way registered user is automatically logged as member into the chatroom.

b) Login a guest:


To auto-login a guest without password, the code you may add into your html will be as follows:

Sample code:

Just leave the password blank , users can then be automatically logged as guest into the chatroom.

Md5 encryption

About

md5

:

You may have concerns about the security when auto-log users into chat. Surely you can encrypt password with MD5 for security reason.

a)How to get md5 encrypted password:

For example: With a text-editing tool like notepad, You can get the md5 encrypted password through php file.
if user password = mypassword,the code you should add into your php will be as follows:

Find sample code:



Save and reload the php file with IE browser,you will get the code: 34819d7beeabb9260a5c854bc85b3e44

b)Insert html codes:


if user name = myusername, password = mypassword, the code you should add into your html will be as follows:

Sample code:

You can see Md5 encrypted login is enabled by default.

c)php sample to auto login a user as guest**.

Click to download a php sample to auto login a user as guest**.

Full tutorial on how to auto-login-guest.

 

 


TOPCMM News
24 Hours Support
+86-21-51785636 (China)
+1-858-866-9362 (USA)
Mailing List

For news, update and promotion of TOPCMM.


Home | About | Products | Download | FAQ | Order | Support | Features | Reviews | Demo | Links | Sitemap | Forum | Blog

Flash Chat | Java Chat Server| Chat Server Software| Instant Messaging Software| Live Help Chat
Webcam Chat | Web Chat Room| Enterprise Messaging| Enterprise Chat Software| Flash Chat in China
Legal Disclaimer| Privacy Statement | Terms of Use    Copyright © 2001-2008 TopCMM Software Corp. All Rights Reserved.