Sub Domain Share same Login

pramudya81 - December 4, 2008 - 09:11

Hi, I'm using D5. And Currently implementing subdomain of my site.
http://www.dakiunta.com/ is my main site and I have built a new sub domain called http://www.bejubel.dakiunta.com/

The first is for media sharing and second is for free advertising.

These 2 domains are independent each other and have their own tables. I want it this way to have a clear separation especially on their contents.

Question is can I have 1 table for user i.e. a shared user table or perhaps a shared login session or something like that. Thus, user on my main site automatically capable accessing the domain site without requiring to create new user again, and vice versa.

Regards

You can share user tables

crystalcube - December 4, 2008 - 12:57

You can share user tables across instances. There's a handbook page to show it can be done, take a look at it http://drupal.org/node/291373 .
Session can also be shared by using following in your settings file:

ini_set('session.cookie_domain', '.dakiunta.com');

Thanks for the link...I'll

pramudya81 - December 9, 2008 - 07:13

Thanks for the link...I'll look at it.

 
 

Drupal is a registered trademark of Dries Buytaert.