Date: 01/18/00
- Next message: Kristian Köhntopp: "Re: [PHPLIB] RPM for phplib: Red Hat already beat me to it"
- Previous message: Nikolas Hagelstein: "Re: [PHPLIB] Repeated login screens."
- Next in thread: Kristian Köhntopp: "Re: [PHPLIB] adding elements to $auth->auth"
- Reply: Kristian Köhntopp: "Re: [PHPLIB] adding elements to $auth->auth"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greetings,
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. Therefore, I'd like to know if it's appropriate to add elements
to the $auth->auth array after a user has been authenticated. Does
anyone see any problems with this? It works, but maybe I have
overlooked a problem that this might cause.
Some code from my auth_validatelogin() function:
function auth_validate_login() {
...
# Database query that selects userid and password goes here
# Loop through the result set
while($this->db->next_record()) {
$uid = $this->db->f("UserID");
$this->auth["label_id"] = $this->db->f("LabelID");
$pass = $this->db->f("Password");
}
...
}
Thanks in advance,
-Philip
-
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.
- Next message: Kristian Köhntopp: "Re: [PHPLIB] RPM for phplib: Red Hat already beat me to it"
- Previous message: Nikolas Hagelstein: "Re: [PHPLIB] Repeated login screens."
- Next in thread: Kristian Köhntopp: "Re: [PHPLIB] adding elements to $auth->auth"
- Reply: Kristian Köhntopp: "Re: [PHPLIB] adding elements to $auth->auth"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

