CodeIgniter Forums
cookies on subdomains - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: cookies on subdomains (/showthread.php?tid=8407)



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