Session Variables not working across subdomains?

The problem lies in using Suhosin's suhosin.session.cryptdocroot option if the session encryption key is based on the DocRoot it causes the problem.
This appears to set a session cookie's document root based on the folder the corresponding subdomain is in. Two subdomains based on two different folders (which is not unusual) will lead to the creation of cookie records in two DIFFERENT folders by Suhosin, meaning that neither sub-domain will be able to see the cookie values set by the other subdomain.
Add the following to the end of php.ini:


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Clearing Your DNS Cache?

Windows® XP, 2000, Vista® or Windows 7 1. Open the Start menu. 2. Go to Run. If you do...

How to setup email account on Apple iPad?

To setup your email account on your Apple iPad. Please follow the following steps: 1. Tap on...

Can my database's be backed up automatically?

Yes, please see below for more information: 1 - Log into your control panel (cPanel) 2 –...

Enable PHP 5.3 support

Our servers support both PHP 5.2 and PHP 5.3. The default version is PHP 5.2.x but you can...

Upload your web site using Microsoft Publisher 2003

To upload your web site using Publisher 2003 simply follow these steps. It should be noted that...