[horde] failback sessionhandler

Jan Schneider jan at horde.org
Mon Jul 18 12:54:29 PDT 2005


Zitat von liam hoekenga <liamr at umich.edu>:

> I'm trying to impliment a makeshift fallback sessionhandler (cuz we need
> something immediately).  So, I've added this to my horde/config/conf.php:
>
>
>    if( !( $db = mysql_connect(
>            $conf['sessionhandler']['params']['hostspec'],
>            $conf['sessionhandler']['params']['username'],
>            $conf['sessionhandler']['params']['password'] ))) {
>
>        global $notification;
>        $conf['sessionhandler']['type'] = 'none';
>        $notification->push(_("local sessions!"), 'horde.warning');
>    } else {
>        mysql_close( $db );
>    }
>
> I realize that this isn't the right way to do this long term, but in the
> meantime it seems to work.. except for the notification.  I get this in my
> error logs:
>
> [Mon Jul 18 15:24:31 2005] [error] PHP Fatal error:  Call to a member 
> function
> push() on a non-object in
> /usr/local/projects/webmail/html-ssl/horde/config/conf.php on line 127
>
> I'd even tried $GLOBALS['notification']->push() instead, to the same end.
> Is there any way to take advante of the notification system at this 
> point if I'm
> doing this?

No, because the configuration is loaded before the notification system.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list