RE: [PEAR] Using Auth_HTTP

From: Date: Tue, 30 Sep 2003 14:39:25 +0000
Subject: RE: [PEAR] Using Auth_HTTP
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8148@lists.php.net to get a copy of this message
Complement to my post: The Header() line doesn't change anything on the problem, so it's staying the same when deleting / commenting it. Either I tryed using Auth instead of Auth_HTTP and the following code worked immediately for me: require_once 'Auth/Auth.php'; $auth =& new Auth("DB", $dsn); $auth->storage->options['table'] = "logins"; $auth->storage->options['usernamecol'] = "email"; $auth->storage->options['passwordcol'] = "pass"; $auth->storage->options['cryptType'] = "md5"; $auth->assignData(); $auth->start(); function loggedin() { echo "logged in successfully"; } if (!$auth->getAuth()) { exit(MY_LOGIN_ERROR); } Thanks for any help! -- Dennis

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