[horde] failback sessionhandler
liam hoekenga
liamr at umich.edu
Mon Jul 18 12:34:15 PDT 2005
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?
thx
Liam
More information about the horde
mailing list