[support] multisite

Cog Rusty cog.rusty at gmail.com
Tue Apr 15 11:23:47 UTC 2008


On Mon, Apr 14, 2008 at 7:31 PM, Jacob Roufa <jacob.roufa at gmail.com> wrote:
> Hi all,
>
> I have a multisite setup that works great. It allows me two different sites
> using one Drupal core codebase just as promised. It works better and easier
> than redirecting to different domain names using Apache Virtual Hosts.
> However, I have one issue with it. When I create a symbolic link, in the
> sites folder, for each site (i.e. sitename linked to sitename.domain.tld) so
> that I can visit it not only by sitename, I am directed to a different site
> in my browser.
>
> In my browser, when I go to http://sitename and log in, then visit
> http://sitename.domain.tld I'm not logged in! But they're the same thing,
> one's just a symbolic link to the other! I really am confused and wondering
> if this is proper behavior because it doesn't seem like it.

If the cookie domains are different, it doesn't matter that the two
sites are the same thing.By default the cookie domain depend on the
the request URL used to go to the site, which in your case is
different. Try to set the same $cookie_domain in both sites'
settings.php files and see what happens. (You may need to clear your
browser's cookies.)


> Thanks!
>
> --
>
> Jake Roufa
> Web Consultant
> http://jacobroufa.com
> --
>  [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list