它出现在下面的cookie设置中,为整个域设置了cookie.例如,如果我在
http://subdomain.domain.com,则将为subdomain.domain.com设置cookie.如果我在domain.com上,则将为domain.com设置cookie.
如果为subdomain.domain.com设置了cookie,那是否意味着subdomain2.domain.com无法从subdomain.domain.com访问cookie?
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";