vincent
|
| Posted: 03/20/2002, 5:49 PM |
|
Hi,
Has anyone created a login page from scratch.. not using CC default
Login.php? if so, please advise how to approach building one... thx
Vincent
|
|
|
 |
vincent
|
| Posted: 03/21/2002, 3:20 PM |
|
Oh, what I meant was creating a login from scratch using CC...
Thanks
"vincent" <vooi@activedrive.com> wrote in message
news:a7be71$73s$1@news.codecharge.com...
> Hi,
>
> Has anyone created a login page from scratch.. not using CC default
> Login.php? if so, please advise how to approach building one... thx
>
> Vincent
>
>
|
|
|
 |
Glenn Holden
|
| Posted: 03/26/2002, 7:44 PM |
|
I've got a Register User page that logs the user in if the registration is
successful. It saves the redundent step of logging in after registering.
In the After Insert Event on the record form I have this code. I use PHP
and MySQL.
// if the insert is successful, set the UserID session var to the UserRN.
if (mysql_errno() == 0 and $sRegister_UserErr == "")
{
// get the Key field's value and security field's value from brand new
record.
$resultA = mysql_query("select RN,Security from tblUser where RN =
last_insert_id()");
$rowA = mysql_fetch_array($resultA);
// set CodeCharge's UserID variable and UserRights variable to those values.
set_session("UserID",$rowA["RN"]);
set_session("UserRights",$rowA["Security"]);
mysql_free_result($resultA);
}
Code Charge now has the user logged in and the form can direct the user to a
secure page if the page's security level is =< user sec level.
Glenn
"vincent" <vooi@activedrive.com> wrote in message
news:a7dprs$ib7$1@news.codecharge.com...
> Oh, what I meant was creating a login from scratch using CC...
>
> Thanks
>
> "vincent" <vooi@activedrive.com> wrote in message
>news:a7be71$73s$1@news.codecharge.com...
> > Hi,
> >
> > Has anyone created a login page from scratch.. not using CC default
> > Login.php? if so, please advise how to approach building one... thx
> >
> > Vincent
> >
> >
>
>
|
|
|
 |
|