[imp] Printing out session vars

Chuck Hagenbuch chuck at horde.org
Sun Jan 14 21:08:25 PST 2007


Quoting Roger Thomas <sniper at home.net.my>:

>> > My Horde/IMP is working fine with IMP doing the authentication.
>> > Session is stored in mySQL. Path to IMP is:
>> > /html/horde/imp
>> >
>> > I have a non-Horde app in /html/app and I would like to print out
>>
>> > Horde's session vars from a script in /html/app/sess.php so that I
>>
>> > am able to test whether a user has login to IMP or otherwise. I did
>>
>> > this:
>>
>> Your script looks fine; likely you have Horde's cookie root to /horde
>>
>> (I'm assuming that /html is the docroot, but in any case), so Horde's
>>
>> cookies aren't being sent to your app. You probably want to sent the
>>
>> cookie_root in Horde to "/".
>>
>> -chuck
>>
>> --
>> "we are plastered to the windshield of the bus that is time." -
>> Chris
>> --
>> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>>
>
> Docroot is /html/horde and I have set the cookie path to '/'
> $conf['cookie']['path'] = '/';

So the docroot is different from horde and the app? You need to make  
sure the cookie domain is inclusive of the common domains for the  
apps, then.

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the imp mailing list