Example #1
0
 function SetCookie($username)
 {
     $user = new User();
     $user->SetDatabase($this->database);
     $user->SetUsername($username);
     $user->SelectByName();
     setcookie("cookie_userid", $this->GetId(), 0, "/");
     setcookie("cookie_username", $user->GetUsername(), 0, "/");
     setcookie("cookie_password", $user->GetEncryptedPassword(), 0, "/");
 }