CodeIgniter Forums
Cannot read cookies set by subfolder? - 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: Cannot read cookies set by subfolder? (/showthread.php?tid=31290)



Cannot read cookies set by subfolder? - El Forum - 06-13-2010

[eluser]chr1831[/eluser]
Hi CI Community,

I am having some cookies issues here, and hopefully someone here might be able to lend a hand. I am using setcookie("referralUrl", $referralUrl, time()+31556926, '/', '.domain.com'); on /register/ (it is a folder).

When I print_r($_COOKIE); from index.php on the domain I do not see referralUrl. If I print it from /register/ I can see it. Also in firefox I do see the cookie.

Any Ideas?



-Chris Q.