CodeIgniter Forums
2 cookies from ci_session? - I need help - 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: 2 cookies from ci_session? - I need help (/showthread.php?tid=7243)



2 cookies from ci_session? - I need help - El Forum - 03-31-2008

[eluser]new_igniter[/eluser]
Hello,
I have been havingone hell of a time with ci_sessions and wondering why I am getting 2 cookies dispensed (one for www. and .) when I start a session? I only see this happening on my site. I think this is causing big problems and am wondering how I can just dispense one cookie?

Thanks,
Peter


2 cookies from ci_session? - I need help - El Forum - 03-31-2008

[eluser]Seppo[/eluser]
May be you haven't set $config['cookie_domain'] in you application/config.php file the best thing to do is set it to ".your-site.com"


2 cookies from ci_session? - I need help - El Forum - 03-31-2008

[eluser]new_igniter[/eluser]
Thanks Seppo! I appreciate it.