[dev] Horde from outside application

Mini Chate ctroup at uwo.ca
Fri Nov 4 20:08:41 PST 2005


Hello,
I'm stuck on how to access the Auth::isAuthenticated() value from
applications outside of Horde.

The Wiki has some information (http://wiki.horde.org/Doc/Dev/LegacyApps) but
it didn't work for me. I'm using the following code:

define('HORDE_BASE', dirname(__FILE__) . "/../horde");
require_once HORDE_BASE . '/lib/core.php';

$registry = &Registry::singleton();
$auth = &Auth::singleton($conf['auth']['driver']);

$var = $auth->isAuthenticated();

Not only does it not get the correct true/false value for if the user is
logged in, but it resets the login credentials and logs the user out of
Horde.

Any help would be appreciated.

Christopher Troup
ctroup at uwo.ca




More information about the dev mailing list