Menu

Session data not deleted

Help
Anonymous
2003-07-25
2003-07-25
  • Anonymous

    Anonymous - 2003-07-25

    When loging out and doing the following steps in my extended auth class:

        if($HTTP_POST_VARS["submit"]=="logout" && isset($HTTP_POST_VARS["submit"])){
            $this->nobody = false;
            $this->unauth();
            $this->logout();
        }

      function logout($nobody = "") {
        global $sess, $HTTP_COOKIE_VARS;
                 $sess->unregister("auth");
        $sess->unregister("username");
        $sess->unregister("password");
        $sess->unregister("variable");   
                 unset($this->auth["uname"]);
                 $this->unauth($nobody == "" ? $this->nobody : $nobody);
        include("logoutform.ihtml");
        exit;
      }

    When I am trying to set a link in my logoutform.ihtml-Site, that refers to another or the same (self) Site, the Cookie is deleted in the Database, but when I am tracking the Sessionvars, I get the hole Information of my loged out session.

    What am I doing wrong?

     
    • Layne Weathers

      Layne Weathers - 2003-07-25

      It looks like you are deleting the information from the session object, but you aren't doing a page_close() to write the modified session data to the database. I often kill the entire session on logout.

       

Log in to post a comment.