CodeIgniter Forums
Same cookie name, different domain - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Same cookie name, different domain (/showthread.php?tid=67431)



Same cookie name, different domain - bjacobs - 02-21-2017

I have:
Code:
$config['cookie_domain'] = '.' . $_SERVER['SERVER_NAME'];

So why do I have one cookie named ci_session with the domain:
Code:
.mysite.com

And another cookie named ci_session with the domain:
Code:
.www.mysite.com

And also, is this a problem. If not, I don't care why it's doing it! Ha!

This is version 2.0.2 btw


RE: Same cookie name, different domain - Narf - 02-21-2017

Same question, different site

Is this a problem? You obviously don't care. Smile


RE: Same cookie name, different domain - bjacobs - 02-21-2017

(02-21-2017, 02:14 PM)Narf Wrote: Same question, different site

Is this a problem? You obviously don't care. Smile

What?


RE: Same cookie name, different domain - bjacobs - 02-24-2017

(02-21-2017, 02:14 PM)Narf Wrote: Same question, different site

Is this a problem? You obviously don't care. Smile

Is this you? https://github.com/bcit-ci/CodeIgniter/issues/744. If so, might I need to upgrade from 2.0.2 in order to fix my problem of multiple sessions being created and old ones not updating properly.


RE: Same cookie name, different domain - Diederik - 02-24-2017

Is there a reason not to upgrade?


RE: Same cookie name, different domain - bjacobs - 02-24-2017

(02-24-2017, 02:43 PM)Diederik Wrote: Is there a reason not to upgrade?

Well if it won't fix the problem, then I'm just taking a lot of time to do that. I will eventually, but need to solve this first.