Re: [PHPLIB] adding elements to $auth->auth From: Kristian Köhntopp (kris <email protected>)
Date: 01/19/00

Philip Strnad wrote:
> I'm trying to make some variables persistent (using $sess->register())
> after authentication from within my auth class, but this doesn't seem to
> work.

Most likely you forgot to global them. This is a very common error.

> Therefore, I'd like to know if it's appropriate to add elements
> to the $auth->auth array after a user has been authenticated.

This is possible provided that you avoid name clashes with the
Auth class. In fact, Auth_Sql from the CVS does exactly this
to communicate error messages to itself and to provide a permission
value for the Perm class.

Kristian

-- 
Kristian Koehntopp, Knooper Weg 46, 24103 Kiel, +49 171 2231 811
"AOL ist sowas wie die AOK der Internet-Provider."
	-- Peter Berlich <peter <email protected>>

- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.