session.cookie_domain suddenly stopped working

Hi,

I am using the following override in my .htaccess file up on my shared host.

php_value session.cookie_domain ".mydomain.co.uk"

This worked fine at first but now the session is no longer tracked between the domain and subdomain.

Unfortunately there has been a bit of a gap between knowing when this did work and now that I find it broken - this is making it difficult for my hosting provider to pinpoint what could have changed to cause the problem.

In order to help, I setup a similar test server ( linux, litespeed, php 5.2.17 ) at home and what do you know, my code works fine on this server, session tracking acts as expected.

I don’t think my provider has a clue what the problem is and neither do I so I wondered if the php community would be willing to help me diagnose the problem.

I can attach phpinfo from my provider and from the test host if this will help - I already went through them both and tried to set all of the values to be the same but this has had no effect.

Many thanks,
Darren

This was the answer that worked for me when all else failed !

php_flag suhosin.session.cryptdocroot Off

Hope this helps someone else.

Sponsor our Newsletter | Privacy Policy | Terms of Service