By ryanstickney on
I recently inherited the role of administering our company's drupal site so I'm very new to all of this. Today I had a user having problems updating page info via drupal. I found that it was because of a link on our site taking them from one hostname (about.) to another (employer.) and not maintaining their logon. after looking at the cookies for both hosts it appears that the cookie includes the hostname about.jobster.com and employer.jobster.com is there a way to make this cookie encompass both hostnames instead of the users having to log on to both about.jobster.com/user and employer.jobster.com/user?
Comments
I think you'll need to save
I think you'll need to save the cookie as such:
setcookie(session_name(), session_id(), time() + 3600 * 24, "/", ".jobster.com");
The leading . should allow it to work on any subdomain. It's worth giving it a try.