Re: [phplib] default authentication, anyone using it? From: giancarlo pinerolo (giancarlo <email protected>)
Date: 08/05/01

Tarique Sani wrote:

>
> The main problems was login_if() function. I would like to see
> login_if() work for something like login_if(!$have_perm blah blah...
>
>
> > For me the biggest problem is the capability, for user 'nobody', to
> > store any user data
> > eg:
> > $user->register("whatever")
>
> Well I encountered this and my work around was not to register user data
> for nobody but keep it as sesion data and when ever the person logs in
> transfer it to user data
>
> I hope I am coherent enough ... ...
>

Yes, I know the problem perfectly... swap data from session to user once
he becomes 'somebody'.

But What do you think of taking away altogether the 'user' storage for
nobody? That leads to quite a few programming mistakes, and extra checks
to be done whenever you register or freeze or page_close.

Giancarlo

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>