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

 Login Password as Session Variable

Print topic Send  topic

Author Message
acedrummond


Posts: 90
Posted: 05/05/2010, 11:19 AM

I need to use the login password as a variable in other screens.

Is there anyway t oeasily preserve it in the login before I redirect to the next page?

Thanks/
_________________
Ace Drummond
View profile  Send private message
datadoit
Posted: 05/05/2010, 11:27 AM

Since the user is authenticated, could you not just grab it when needed
via CCDLookUp()?

$pw = CCDLookUp("user_password", "users", "user_id=" . CCGetUserID(),
$Page->Connections["Connection1"]);
acedrummond


Posts: 90
Posted: 05/05/2010, 12:07 PM

Thanks, but that code retrievs a field from the database.

In this case I am using the login as generated and before I redirect to the next page I want to take the password that was justkeyed in and use it as a parameter for the next page (session variable).

I don't know how to capture that password.

Thanks/
_________________
Ace Drummond
View profile  Send private message
Waspman

Posts: 948
Posted: 05/05/2010, 2:16 PM

Save the field value on submit?
_________________
http://www.waspmedia.co.uk
View profile  Send private message
acedrummond


Posts: 90
Posted: 05/05/2010, 7:12 PM

:-) :-)Problem solved

CCSetSession('key', ($Container->password->Value) );

I added this to //Login paragraph where the user/paassword was already validated.

Thanks/
_________________
Ace Drummond
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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