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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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.