[PHPLIB] "This has not been coded yet." From: Spruce Weber (sprucely <email protected>)
Date: 04/25/00

When I have a user unregister, I explicitly delete their session. However,
when a user has cookies disabled and they unregister, they get a blank page
with "This has not been coded yet."

It turns out that the function $sess->delete() calls put_id() which is
supposed to clear out any session cookies, but if it's in get mode it calls
die(). Why doesn't this function just exit gracefully if there are no
cookies to clear? I commented out line 156 from session.inc and everything
seems to work fine. Are there any consequences to doing this?

  ## put_id():
  ##
  ## Stop using the current session id (unset cookie, ...) and
  ## abandon a session.
  function put_id() {
    global $HTTP_COOKIE_VARS;

    $this->name = $this->cookiename==""?$this->classname:$this->cookiename;

    switch ($this->mode) {
      case "inline":
        die("This has not been coded yet.");
      break;

      case "get":
        //die("This has not been coded yet.");
      break;

      default:
            SetCookie($this->name, "", 0, "/", $this->cookie_domain);
            $HTTP_COOKIE_VARS[$this->name] = "";
      break;
    }
  }
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

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