[dev] session problem fixed?

Chuck Hagenbuch chuck at horde.org
Fri Oct 3 17:07:26 PDT 2003


Quoting Amith Varghese <amith at xalan.com>:

> I painstakingly put print statements starting from the initial login and
> traced
> my way through Horde/IMP.  I have IMP performing my authentication in my
> setup
> and when I got to imp/lib/Session.php it was authenticating the user (using
> the
> imp/lib/Auth/imp.php class.  At the end of the authenticate function it calls
> parent::authenticate.  This takes us to horde/lib/Auth.php and the function
> setAuth().  In there it reloads the prefs of the user who just logged in.
> However in loadPrefs, the application scope is "imp" because IMP was used for
> authentication and I think this is why portal_layout wasn't getting defined.
> I've made the change where I pass in 'horde' to loadPrefs and that seems to
> get
> the right application scope when reloading the user's prefs.

This isn't right; this would cause IMP prefs to not be properly loaded. The
loadPrefs() call, if $app is 'imp', should always be loading IMP *and* Horde
preferences. If that's not happening, that's the problem.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
Born right the first time.


More information about the dev mailing list