Back to Linux Basement

2007 August | Linux Basement Presents: Chad's Blog - Part 2

Archive for August, 2007

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

Search

 

Chad's Twitter

Favorites