CodeIgniter Forums
cookies on subdomains - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: cookies on subdomains (/thread-8407.html)



cookies on subdomains - El Forum - 05-16-2008

[eluser]AtlantixMedia[/eluser]
Hello,

this is my situation

1) www.domain.com with cookies set on that domain
2) test.domain.com
3) test1.domain com

how can I make the cookies "global" so that test.domain.com and test1.domain.com see them too?

thanks in advance


cookies on subdomains - El Forum - 05-16-2008

[eluser]Sean Murphy[/eluser]
Quote:For site-wide cookies regardless of how your site is requested, add your URL to the domain starting with a period, like this: .your-domain.com
http://ellislab.com/codeigniter/user-guide/helpers/cookie_helper.html