[PHPLIB] default auth + nobody user From: Stanislav Malyshev (stas <email protected>)
Date: 12/27/99

I have a following problem with PHPLIB (7.2):

I have public and protected pages. Public pages use nobody UID and
protected pages force user to log in. The problem is that after user
enters the login form, the uid becomes "form" and now even on public pages
login form is shown ($auth->start() checks for user "form" and if it's
there, thinks we are in the middle of the login). How can I make it to
forget the "form" user and return to the "nobody" state?

Protected pages are protected with the function like this:

  function real_user() {
      $this->login_if($this->auth["uid"] == "nobody" || $this->auth["uid"]
== "");
      return $this->auth["uname"];
  }

And public pages just use page_open and continue. What I am doing wrong?

-- 
Stanislav Malyshev   stas <email protected>          
+972-3-6139665

- 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.