Cookies not being set
Reported by Rob Wilkerson | August 22nd, 2008 @ 10:14 PM | in 2.0 rc2
I just upgraded my dev environment to rc1 and was having trouble logging in. A session record was being created in the database, but the user_id is 0 and no cookie was created. After a lot of trial and (mostly) error, I happened to try a different means of accessing the site and the cookie was saved and I got logged in properly.
The domain that didn't work was http://robwilkerson. The domain that did work was http://robwilkerson.lan.robwilke.... It seems that, when parsing the SERVER_NAME or HTTP_HOST, Chyrp may be hiccuping if the value has no TLD.
Environment: * Mac OS X (Leopard) * FF3
Comments and changes to this ticket
-
misterbrandt August 23rd, 2008 @ 03:22 PM
I experienced this on MAMP recently as well, but I never played with it long enough to get it working, so I wasn't sure if it was a problem with MAMP or a problem with Chyrp. (OS 10.5.4 / FF 3.0.l)
-
Alex Suraci August 26th, 2008 @ 08:36 PM
- → Milestone changed from 2.0 rc1 to 2.0 rc2
-
Alex Suraci August 26th, 2008 @ 08:41 PM
- → State changed from new to resolved
-

Rob Wilkerson September 7th, 2008 @ 07:49 AM
This still isn't working for me. I've updated my code base from git, but as soon as I try to use http://robwilkerson in my dev environment, I'm unable to login. Is there anything special I need to do configure support for no TLD?
-
Alex Suraci September 7th, 2008 @ 09:40 AM
- → State changed from resolved to open
Run this PHP code and let me know what it outputs.
var_dump((substr_count($_SERVER['HTTP_HOST'], ".")) ? preg_replace("/^www\./", ".", $_SERVER['HTTP_HOST']) : null); -
Alex Suraci September 14th, 2008 @ 01:42 PM
- → State changed from open to resolved
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
