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
123flashchat
Special Offers for Flash Chat Software, Live Support Help, Web Messenger Software
123flashchat
We Donate $1 of Each Order to Haiti
123flashchat
TOPCMM Mailing List
For news, update and promotion.


Follow 123 Flash Chat on Twitter!
123flashchat
Products Chat Software
3rd Party Chat Plug-in & Chat Modules
Dating Chat Software About Us
Flash Chat Software
Web Messenger Software
Live Help Chat Software
PHP Chat Software
Facebook Messenger
Online Webcam Chat Software
Site Messenger Software
Java Chat Server
Online Chat Software
Free Chat Rooms
phpBB Chat Module
Joomla Chat Module
vBulletin Chat Module
Mambo Chat Module
Drupal Chat Module
Moodle Chat Module
e107 Chat Module
IPB Chat Module
PHP-Nuke Chat Module
DotNetNuke Chat Module
SkaDate Chat Addon
Datingpro Chat Module
Dolphin Chat Module
phpFoX Chat Module
Contact us
Company Blog
Partnership
Affiliate
Forum
Copyright @2001-2010 TopCMM Software Corp. Privacy policy | Terms of Use | SiteMap | Links