![]() |
How to set cookie ONLY for my domain, except subdomains - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How to set cookie ONLY for my domain, except subdomains (/showthread.php?tid=22397) |
How to set cookie ONLY for my domain, except subdomains - El Forum - 09-08-2009 [eluser]Mareshal[/eluser] When using ySLow I found this: http://developer.yahoo.com/performance/rules.html#cookie_free They recommend us to use another domain, or a subdomain to server static content. I was wondering if this code affect static.my-domain.com? I want to set cookie for main domain, but impossible to read from subdomains. Code: $config['cookie_prefix'] = ""; How to set cookie ONLY for my domain, except subdomains - El Forum - 09-08-2009 [eluser]brianw1975[/eluser] from http://content.websitegear.com/article/subdomain_tips.htm Quote:If you use cookies in your website, a cookie set from a subdomain How to set cookie ONLY for my domain, except subdomains - El Forum - 09-08-2009 [eluser]Mareshal[/eluser] thank you How to set cookie ONLY for my domain, except subdomains - El Forum - 09-08-2009 [eluser]wabu[/eluser] Also check out the 'domain' parameter description here: http://us.php.net/manual/en/function.setcookie.php |