[PHPLIB] adding elements to $auth->auth From: Philip Strnad (pdstrnad <email protected>)
Date: 01/18/00

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.