Hey there,
I currently work for a small newspaper group, and we are moving to a registered usage format. We have three newspapers, each with their own website and identity.
While registering in general is simple, I'm having a delimma with cookies. We would like for our users not to have to register on each of the newpaper sites if at all possible. I first tried to set multiple cookies using:
setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1);
Replacing "/~rasmus/" with a root slash and ".utoroto.ca" with each of the hostnames. Unfortunately they didn't set.
My simple solution was just to have them log when they entered a site they hadn't previously registered in, and call to the db and set the cookie then.
The higher-ups would prefer that they still not have to log in or anything once the registration has been accomplished.
The cookie would be for tracking purposes obviously.
So is there a solution to setting a cookie on multiple sites?
Ron