[horde] Cross-domain Horde Sessions

Chuck Hagenbuch chuck at horde.org
Sat Mar 6 12:32:01 PST 2004


Quoting Kevin Sawyer <sawyerk at metroeast.net>:

> There are several ways to accomplish this but I'm looking for the way which
> requires the least amount of Horde source modification.  :)
>
> Given three hosts (host1.domain.net, host2.domain.net, host3.domain.net), a
> mysql-base session backend, and IMAP-based authentication, I would like to
> present a different horde application on each host.  Yes, the hosts are in
> the same 2nd-level domain.  No, I don't want to rewrite URLs.  Yes, I'm
> willing to pass session IDs via GET when switching hosts, but I'd rather
> not.  I'd like to use the default Horde sessions/cookies but allow seamless
> host changes.  What needs to be done?  What Horde session code must be
> modified and what are those modifications?

Since they're all in the same top-level, all you should have to do is to set
'cookie_domain' to '.domain.net' explicitly in your configuration files.
Assuming that your mysql session backend is shared between all 3. Shouldn't
require changing any code at all.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez



More information about the horde mailing list