Date: 06/12/01
- Next message: Cresta Johnson: "Re: [phplib] login page help"
- Previous message: Jesse Swensen: "Re: [phplib] login page help"
- In reply to: giancarlo pinerolo: "Re: [phplib] login page help"
- Next in thread: Jesse Swensen: "Re: [phplib] login page help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi!
Just wanted to say thanks to everyone who is helping me out - I appreciate
all your input.
Giancarlo,
I followed your steps from 3-5. I skipped 1-2 (because you said it might be
optional & it seemed to do wacky things when I set the $nobody=true). But I
changed the code slightly & put the code on a separate php page so that I
could use the page_open feature without invoking the login page on my index
page. Now, it doesn't seem to work, because it invokes the login screen
(from the php script page), but it has entered the info into the
active_sessions & when I refresh (from the script page) or try to enter the
protected page it allows me to enter without logging in.
So I think I'm missing something.
TIA
Cresta
----- Original Message -----
From: "giancarlo pinerolo" <giancarlo <email protected>>
To: "Cresta Johnson" <cjohnson <email protected>>; <phplib <email protected>>
Sent: Thursday, July 12, 2001 10:15 AM
Subject: Re: [phplib] login page help
> giancarlo pinerolo wrote:
> >
> > step 1
> > activate default_authentication in your auth subclass ($nobody=true)
> > step 2
> > add user, auth, perm everywhere
>
> No, maybe these two steps are optional.
>
> But it took me a few months, after reading the docu and trying the
> kris/test hundreds of times, to understand that 'default_authentication'
> was not a 'weaker authentication scheme' but something the 99% of the
> people would like.
>
> It's having, always, the function of authentication at hand, even before
> the user has authenticated himself *really*, and it's mostly necessary
> when you want personalization, user preferences etc
>
> Giancarlo
>
> > step 3
> > make this form
> > <FORM action="/welcome_new_user.php?enter=yes" method=post>
> > Login
> > <INPUT name=username size=10 value="">
> > Password
> > <INPUT name=password type=password size=10 value="">
> > <INPUT type=submit value="login"><BR>
> > </FORM>
> >
> > step 4
> >
> > make welcome_new_user.php3 like this
> > <?
> > #normal includes and stuff here
> > if ($enter):
> > if ($auth->auth["uid"]=$auth->auth_validatelogin()):
> > page_close();
> > header("Location: ". $sess->url("$PHP_SELF"));
> > else:
> > $login_error="TRY AGAIN;
> > endif;
> > endif;
> > ?>
> > WELCOME NEW USER
> >
> > Step 5
> > come back and tell me. This may be everything.
> >
> > Giancarlo
> >
>
-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>
- Next message: Cresta Johnson: "Re: [phplib] login page help"
- Previous message: Jesse Swensen: "Re: [phplib] login page help"
- In reply to: giancarlo pinerolo: "Re: [phplib] login page help"
- Next in thread: Jesse Swensen: "Re: [phplib] login page help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

