[horde] easy access to $_SESSION
    Chuck Hagenbuch 
    chuck at horde.org
       
    Tue Jun 17 20:22:27 UTC 2008
    
    
  
Quoting Liam Hoekenga <liamr at umich.edu>:
>> Session information is initialized by Registry::.  So after a call to:
>> $registry = &Registry::singleton();
>>
>> the Horde session will be available in $_SESSION.
>
> So, I'm trying this..
>
>   if (!defined('HORDE_BASE')) {
>     define('HORDE_BASE', '/some/path/to/horde/');
>   }
>
>   require_once HORDE_BASE . '/lib/core.php';
>
>   $registry = &Registry::singleton();
>
>   print_r( $_SESSION );
>
> And, it creates a new session... which isn't quite what I want.  I'd  
> like to access the $_SESSION for an already established Horde  
> session from outside of Horde.
You need to load base.php, not core.php, and you need to be under the  
same cookie path that you are already logged in to Horde using...
-chuck
    
    
More information about the horde
mailing list