codice:
function login ($username, $password) {

		if (!$username || !$password) {
                        return $this->error[14];
		}
		else {

			if (!eregi("^[[:alnum:]_-]+$", $username)) {
				return $this->error[3];
			}
			if (!eregi("^[[:alnum:]_-]+$", $password)) {
				return $this->error[7];
			}

			mysql_connect($this->server, $this->db_user, $this->db_pass);
			mysql_select_db($this->database);
			
			$password = md5($password);
			$query = mysql_query("select id from authlib_login where username = '$username' and password = '$password'");
			$result = mysql_num_rows($query);

			if ($result < 1) {
				return $this->error[9];
			}

			else {
				list ($id) = mysql_fetch_row($query);
				$hash = md5($username.$this->secret);
				setcookie("hello", "$username:$hash:$id", time()+3600);
				return 2;
			}
		}
	}
function is_logged () {

		global $hello;
		$session_vars = explode(":", $hello);
		$hash = md5($session_vars[0].$this->secret);
		if ($hash != $session_vars[1]) {
			return false;
		}
		else {
			return array($session_vars[0], $session_vars[2]);
		}
	}
Queste sono due funzioni in una classe con altre funzioni. Il mio problema è che il cookie non viene settato (almeno penso sia questo il problema, perchè con IECookiesView si vedono i cookie quando vengono impostati, invece qui no...). Quindi quando va a richiamarlo ovviamente restituisce non loggato!! (Class di Authlib 1.96_IT)