i have website
example.com
and cname subdomain
static.example.com
for css/js/img files, to load without cookies in header
im using codeigniter to set cookies, config.php
$config['cookie_domain'] = "example.com"; //not .example.com
but when im open google chrome console it says that cookies is set to .example.com
is everything okey? i mean this cookies is set for subdomains anyway?
im using codeigniter built-in cookies, im loading it with autoloader helper.
and setting cookies like that
$cookie = array(
'name' => 'lang',
'value' => $lang,
'expire' => '86500',
'path' => '/',
'secure' => FALSE
);
set_cookie($cookie);