Oh, Auth does not work

From: Date: Fri, 17 Oct 2003 10:19:17 +0000
Subject: Oh, Auth does not work
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8475@lists.php.net to get a copy of this message
A few Days ago, I thought, I did found the reason, why Auth / Auth_HTTP does not work. But - after deleting the Session-Cookie, I can't go again... The following Code shows the test. With another test I verify the access to the Database with MDB. It is ok. There is an md5-password in my database. Is something wrong on my code? register_globals is off. magic_quotes_gpc is on. magic_quotes_runtime is off. safe_mode is off. Apache/2.0.46 (Linux/SuSE) PHP Version 4.3.2 MySQL Client API version (and Server too): 4.1.0-alpha <?php error_reporting(E_ALL); require_once "PEAR.php"; require_once "Auth_HTTP/Auth_HTTP.php"; class CKaren extends PEAR { var $pwd; // just for test function CKaren() { $this->PEAR(); $this->pwd = "xxxx"; $dsn = "mysql://mareb:$this->pwd@localhost/addrmr"; $options = array("table" => "BENUTZER", "usernamecol" => "ALIAS", "passwordcol" => "PASSWORT", "cryptType" => "md5", //"db_fields" => "BENKEY, EXPIRETIME", "dsn" => $dsn); $a = new Auth_HTTP( "MDB", $options ); $a->start(); $a->getAuth(); } function mydisplay() { print("<html><body>"); print("<h3>Hello World</h3>"); //print("<P>BENKEY: " . $_SESSION['auth']['data']['BENKEY'] . "</P>"); print("</body></html>"); } } $obj = new CKaren(); $obj->mydisplay(); ?> -- COMPARAT Software-Entwicklungs-GmbH http://www.comparat.de

« previous php.pear.general (#8475) next »