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

 Transfering Registration Information to User Table before Session ID available

Print topic Send  topic

Author Message
Juergen Oschadleus
Posted: 01/30/2004, 3:51 AM

Thanks to everyone who's helped out in the past. Here's another question,
and I'd appreciate any guidance/input.

The RegistrationForm app provides a Registration form that includes a Login
field, enabling users to complete all details and login in one go. My
database splits this information into two tables: a username/password field
(where a userid value is assigned), and an UserDetail table, containing
name, address etc.

When they register, a user_id is assigned. If I redirect them straight to
the UserDetail table I can't get the Username.user_id value to be inserted
into the UserDetail.user_id field, unless I first take them to the login
page, and then let them select the UserDetail screen. At this point
CCGetUserID ensures they have the right user_id assigned in UserDetail.

But I'd like to do this in one step. I've tried various methods, but all
without success. What is the best way of doing it?

Regards

Juergen

DonB
Posted: 01/30/2004, 6:31 AM

It sounds like maybe you need to call the CCLoginUser() function in the
Before Unload page event or After Insert record event. Although you have
recorded the userid and password in the database, you have not actually
logged them in (that is, set the session variables which persist the group,
userid and username info) until CCLoginUser is called. That happens on the
Login form, but you can call it from anyplace that suits your application
needs.

--
DonB

http://www.gotodon.com/ccbth


"Juergen Oschadleus" <juergeno@actknowSTOPSPAM.com> wrote in message
news:bvdgfs$gl8$1@news.codecharge.com...
> Thanks to everyone who's helped out in the past. Here's another question,
> and I'd appreciate any guidance/input.
>
> The RegistrationForm app provides a Registration form that includes a
Login
> field, enabling users to complete all details and login in one go. My
> database splits this information into two tables: a username/password
field
> (where a userid value is assigned), and an UserDetail table, containing
> name, address etc.
>
> When they register, a user_id is assigned. If I redirect them straight to
> the UserDetail table I can't get the Username.user_id value to be inserted
> into the UserDetail.user_id field, unless I first take them to the login
> page, and then let them select the UserDetail screen. At this point
> CCGetUserID ensures they have the right user_id assigned in UserDetail.
>
> But I'd like to do this in one step. I've tried various methods, but all
> without success. What is the best way of doing it?
>
> Regards
>
> Juergen
>
>


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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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