View Full Version : Sessions across sub domains

12-14-2007, 07:10 PM
I am trying to use the same session on all my subdomains but it is not working.

I added the follwoing line to my php.ini session.cookie_domain = .domain.com but this does not solve the problem. any other suggestions of what I shoild do?

12-14-2007, 07:18 PM
Did you stop and start your web server to get any changes made to php.ini to take effect?

Did you confirm that the value was changed using a phpinfo(); statement in a .php file?

Also, only cookies set after the change will work across the subdomains.