The following are the cookie settings for which cookies are used for the entire domain. For example, if I were on http://subdomain.domain.com , a cookie would be set for subdomain.domain.com, if I were on domain.com, a cookie would be for .com domain.
If a cookie is set for subdomain.domain.com, which means that subdomain2.domain.com cannot access the cookie from subdomain.domain.com?
$config['cookie_prefix'] = ""; $config['cookie_domain'] = ""; $config['cookie_path'] = "/";
source share