Community Documentation

Switch by hostname switch and login for all languages

Last updated November 6, 2012. Created by Roberto Gerola on January 22, 2007.
Edited by frederickjh, bertboerland, bekasu. Log in to edit this page.

Note that the following is INSECURE CODE!

Add this line in all your settings.php files :

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

Note

This causes an infinite redirect loop in drupal 5.3 for me.

But this works instead:

$cookie_domain = 'example.com';

Page status

About this page

Drupal version
Drupal 5.x
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.