I have installed a few Drups in the past

I need to install two tlds on the same database

eg: drupal.com and drupal.co.uk

users should be able to be kept logged in if they switch btwn the two

there will be a link on the corner of a page with a US/UK picture linking to either sites

how best can I install these in 5.0 so the above condition is satisfied

Comments

pwolanin’s picture

Browse around, but I think the main issue may be that the session cookie is set using the domain that you log in on.

Will users only be logging onto one of the two domains, but browsing both? will there be different content?

---
Work: BioRAFT

droople’s picture

it will be different content because a USA citizen might want to post in the .com domain while a UK user will post in the .co.uk domain or even cross post the same content

but the same layout and databases

pwolanin’s picture

I don't understand- same database means same content (though maybe different presentation). Or do you mean that only the user database is the same?

---
Work: BioRAFT

droople’s picture

maybe I am not coming out clear, sorry

Say I want American news on .com
UK news on .co.uk

just like yahoo has .com and .co.uk and .ca etc

will that be same content?

pwolanin’s picture

Well, if you have different posts, or different aggregator feeds, then I'd say you have different content. However, I'm sure it could work to pull different subsets of your content out for each of the two TLDs. For example, one TLD could have the taxonomy term "USA" as the front page, and the other could have "UK" as the front page.

If you want users to be able to move from one site to the other while staying logged in, I'd guess you need to share at least the sessions and user tables.

A few posts on how to make sure the session is good across domains or on manipulating the session cookie:

http://drupal.org/node/277
http://drupal.org/node/87034
http://drupal.org/node/14697
http://drupal.org/node/109572#comment-189047

Still, this sounds like a lot of excess pain unless you think a lot of users wil go to both sites.

---
Work: BioRAFT

mud’s picture

as the previous poster said, it does seem like a lot of excess work.

If users from both sites are crossing over to both sites, then why not just aggregate all of the information on a single site?

Conversely, if not many users are interested in jumping across the two sites, maintain two separate feeds.

Also, why not just build a link between the two sites?

pwolanin’s picture

AndriaD’s picture

I was wondering about this sort of thing myself, regarding my .biz and .net variants. I have the .biz on one host, and it is in fact a business, for the purpose of selling custom web design. I have the .net on another host, where I intend to offer a sort of all-purpose webmaster site. Obviously these will have different content, but I wondered about some sharing of the members. On the .net I can offer such things as email and even a small amount of small-site hosting, which might be a natural "upsell" from the design site (the .biz); I cannot put them both on the host with the .biz because the TOS specifically prohibits ANY sharing of space, but the other host does not.

Any tips on user sharing?

Andria

AbeLincoln’s picture

It'd be kind of different, but you could enable the setting allowing users to use drupal.org log-ins. That way people could use the smae log in at both. It'd be funny that you didn't "own" the users, but still.
_______________________
Jim jam and Sunny Forum