I'm working on some project on CodeIgniter and I would like to limit cookies on maindomain.tld and www.maindomain.tld, because I have another, third, domain another.maindomain.tld which has installed same application but with a little different features. My config for maindomain.tld is like that:
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "maindomain.tld";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;
And for another.maindomain.tld:
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "another.maindomain.tld";
$config['cookie_path'] = "/";
$config['cookie_secure'] = FALSE;
Cookies from maindomain.tld are working on another.maindomain.tld which shouldn't be, because databases are different and there might not be same user with same id.