CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Help on Login Form

Print topic Send  topic

Author Message
Lance

Posts: 6
Posted: 05/19/2005, 2:39 PM

I've created a login form using the authentication builder. But after I log in and return to the login screen, the user name and password fields are already populated with my name and I can't change them with a new user.

I've looked at the canned Registration Form that comes with CCS and compared the code and I can't see any difference between that code and mine.

Also, once I've logged in I can't add any more users because I can't log out. I've tried creating a logout with the authentication builder but it doesn't seem to work.

It seems this should be pretty straightforward with the builders but I feel like a dummy. Again.

Thanks,
Lance
View profile  Send private message
peterr


Posts: 5971
Posted: 05/19/2005, 2:52 PM

What do you see in your Login Form's "Data Source" property?

As for the logout, it probably works OK but you just need to put Logout=yes in the URL. How else did try logging out?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Lance

Posts: 6
Posted: 05/19/2005, 3:15 PM

Data Source is my database's users table. I see that I can create a query.

As for the logout, I used the application builder to create an Server - AfterInitialize event set to logout. The builder did all the work, as it did in the login form. I didn't realize I had to do anything. I'm pretty sure I did what the tutorial told me to do.
View profile  Send private message
peterr


Posts: 5971
Posted: 05/19/2005, 3:25 PM

The data source must be blank. Please delete the users table from there. I am pretty sure that the Auth builder does not place it there, therefore i suspect that you've used a Record builder, or changed it manually ? (I might be wrong).

The Auth builder works fine and creates the logout action correctly. The option that you selected in Auth Builder is probably "Logout Action on this Page" therefore you don't need to do anything else, just use that action. To use it you need to add Logout=yes into the URL.
Keep in mind that you can use Auth Builder to add logout functionality to any page, so it wouldn't be a good idea to logout users just because they visited some Web page.
Please also see:
http://docs.codecharge.com/studio/html/Actions/Server/Logout.html
http://forums.codecharge.com/posts.php?post_id=46206

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.