[horde] Two problems - session already active

Rick Romero rick at havokmon.com
Tue May 20 05:57:18 PDT 2003


On Mon, 2003-05-19 at 16:28, Jan Schneider wrote:
> Zitat von Rick Romero <rick at havokmon.com>:
> 
> > First, I moved my working Horde install from a FreeBSD 4.3 PC to a
> > FreeBSD 4.8 PC, and if I set the sessionhandler to 'sql', I get Sig11's
> > in my /var/log/messages, and a blank page.
> >
> > Currently, I have it set to 'none', and it seems to be working ok.
> 
> Michael just fixed some issues with the sql session handlers. You should
> update your checkout again.

Now I get:
Warning: ini_set() [function.ini-set]: A session is active. You cannot
change the session module's ini settings at this time. in
/usr/local/www/data.default/horde/lib/Horde.php on line 1238

On the login page, and when I attempt to log in, that's ALL I get :(

I've cleared the horde_sessionhandler table, and it's even empty right
now.  I even dropped the table, and recreated it with 
mysql -p horde < sessionhandler.sql
(after I wiped the scripts/db directory, and did another cvs update).

Any ideas?

> > Second, I have some custom code in horde/menu.php to display a link to
> > QmailAdmin, and auto-login the user.  I use:
> >
> > 	list($v_username, $v_domain) = split ('[@%]', $imp['user']);
> >         $v_passwd = Secret::read(Secret::getKey('imp'), $imp['pass']);
> >
> > to get the username and password in a format that Qmailadmin can take.
> > Unfortunately, now I get:
> > Notice: Undefined variable: imp in
> > /usr/local/www/data.default/horde/menu.php on line 131
> >
> > Of course, Line 131 is my custom code.  What should I use instead of
> > $imp['???'] to get the username/password ?
> 
> Auth::getAuth() and Auth::getCredential('password') is what you are looking
> for.

Works like a charm, thanks Jan!

Rick




More information about the horde mailing list