Language: ChineseGermanSpanishFrenchDutchItalianRussian 
Home » 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:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476">
<PARAM NAME=movie VALUE="123flashchat.swf?init_user=myusername&init_password=mypassword">
<PARAM NAME=quality VALUE="high"> <PARAM NAME="menu" value="false">
<EMBED src="123flashchat.swf?init_user=myusername&init_password=mypassword" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

 

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:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476">
<PARAM NAME=movie VALUE="123flashchat.swf?init_user=guest&init_password=">
<PARAM NAME=quality VALUE="high"> <PARAM NAME="menu" value="false">
<EMBED src="123flashchat.swf?init_user=guest&init_password=" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

 

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:

 

<? echo md5('mypassword'); ?>


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:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476">
<BR>
<PARAM NAME=movie VALUE="123flashchat.swf?init_user=myusername&init_password=34819d7beeabb9260a5c854bc85b3e44&md5=true<BR> <PARAM NAME=quality VALUE="high">
<BR>
<PARAM NAME="menu" value="false">
<BR>
<EMBED src="123flashchat.swf?init_user=guest&init_password=34819d7beeabb9260a5c854bc85b3e44&md5=true" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
<BR>
</OBJECT>

 

You can see Md5 encrypted login is enabled by default.

c) PHPsample 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.

 

 


123flashchat
Chat Software Products Our Services
About us
3rd Party Chat Plug-in

Flash Chat Software
Online Webcam Chat
Java Chat Server Software
PHP Chat Software
Web Messenger Software
Instant Messenger Software
Site Messenger Software
Live Help Chat
Online Chat Software

123 Flash Chat
123 Live Help
123 Web Messenger
123 Flash Game
iPhone Chat
Google Android Chat
Facebook Messenger
Flash Chat in China
Chat Hosting
Installation and Integration
Customize Skin
Application Customization
Facebook Chat Application
Firefox Chat Add-on
Desktop Chat Client
iGoogle Chat Application
Windows Live Spaces Chat Module
Contact us
News
TOPCMM Team
Company Blog
Follow us on Twitter
FAQ
Partnership
Affiliate
Forum
phpBB Chat Module
Joomla Chat Module
vBulletin Chat Module
Mambo Chat Module
Drupal Chat Module
Moodle Chat Module
phpFOX Chat Module
IPB Chat Module
PHP-Nuke Chat Module
PostNuke Chat Module
DotNetNuke Chat Module
Copyright @2001-2009 TopCMM Software Corp. Privacy policy | Terms of Use | SiteMap | Links