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.
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);
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.
Search
Chad's Twitter
- @jackljohnson: haha, thanks for the vote of confidence
- wow, just got a call from tech support for a consulting job I did 2 years ago. Um, updateyourrecordsfools.com
- @boondox: If it has to be specifically open source, then you may want to look into programmer or Linux Systems admin
- Totally bummed I can't use themes with Apps. I hate you all.
- I am truly humbled by the amount of support I've been receiving for Linux Basement. Thank you.