Back to Linux Basement

Drupal Session handling for multiple subdomains | Linux Basement Presents: Chad's Blog

Drupal Session handling for multiple subdomains

If you are having problems with cookies for multiple sites on the
same web server running drupal, make sure the following session
handlers are in the settings.php files for your site configuration.

I searched the drupal site thoroughly and found this thread, which lead me to my settings change.

http://drupal.org/node/56357

Here are the changes I made for each of my multiple drupal driven subdomains in settings.php

ini_set(’session.name’, ‘PHPSESSID’);
ini_set(’session.cookie_domain’, ‘.example.com’);
ini_set(’session.cookie_secure’, 0);

Where PHPSESSID is your unique cookie identifier (ex: MYUNIQUEID)
and .example.com = your fully qualified domain name, including any
subdomain prefix.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Saturday, August 4th, 2007 Open Source, drupal, web design

1 Comment to Drupal Session handling for multiple subdomains

  1. You save my life…

    Thanks for this post.

  2. Zitun on March 10th, 2008

Leave a comment

You must be logged in to post a comment.

Search

 

Chad's Twitter

Favorites