CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Automatically Login

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 10/14/2008, 9:33 AM

I have a sign-up form where the user enters his/her details including the login name and password. Is it possible to automatically log the user in after the sign-in page has been submitted?
View profile  Send private message
Zye

Posts: 56
Posted: 10/14/2008, 10:38 AM

Hi sasecow

Try something like this in form AfterInsert event.

$login = $registration->DataSource->user_login->Value;
$password = $registration->DataSource->password->Value;
CCLoginUser($login, $password);

Hope this helps.

Zye ...
View profile  Send private message
saseow

Posts: 744
Posted: 10/14/2008, 1:17 PM

Thanks so much zye. Work like a dream!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.