Hi there,

I've run into an issue where I'm using the domain module to create many different subdomains using one Drupal instance, and to help alleviate login issues we set the $cookie_domain variable in settingsphp to just the root domain so that no matter where you go, you can stay logged in as you navigate the various subdomains.

We're now trying to hook up Janrain but I've run across an issue where you try to log in and no errors occur or anything, the log shows a session was opened for a user, but the user doesn't actually get logged in. I identified this cookie issue as when I comment out $cookie_domain, it works fine.

The question then, is what is possible to do with this module in regards to this? I don't know what Janrain returns for data, so it may mean we're simply out of luck -- but I choose to think this module can manipulate the login information and assign the cookie more appropriately. Has anyone run across this? Is it possible to assign the session data to use the $cookie_domain rather than just the URL of the site you're on?

Thanks!

Comments

sethg’s picture

I think you may need to set the domain value to .domain.com so the cookie is available to all subdomains.

webservant316’s picture

yes same issue here and setting $cookie_domain to .yourdomain.com solves the problem.