Hello,

I'm just wondering is it possible for me to have a session available on multiple domains, i tried this in a .htaccess file in site1.come:

php_value session.cookie_domain site2.com

Now when I do that, the session is cookie is NOT avilable on site1.com (the site that set it), is it possible for me to retrieve the session cookie from site1.com and site2.com? I am attempting to use the same members database and preserve their login from site to site, I have found no way to specify multiple sesion.cookie_domain values, one site can alwaysnever retrieve it.

Any ideas?

    4 months later

    I am having the same problem. Have you found anything about that?

      I had the wrong idea, you can't set cookies that can be retrieved from multiple domains, just from multiple subdomains 🙁

      I'm afraid that if you want a cookie for site1.com and site2.com, you must use separate cookies, you can't do it in one cookie.

      To have the cookie available across multiple subdomains just do

      .host.com

      as the "host" that can retrieve it.

        Write a Reply...