Okay, looking at Sail's post SailAweigh "What Happens in Natter 35 Stays in Natter 35" Apr 29, 2005 4:23:05 am PDT, and seeing DX's post here, I can see that wasn't my imagination. Somewhere in the unsubbing from Natter 34 and trying to get/sub to Natter 35, I got logged off. I had only had about two sips of coffee when it happened, so I can't provide more specific details.
Buffistas Building a Better Board
Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.
What DX said. I clicked on the link at the end of 34 and found myself in guest mode in 35.
It was all my fault -- the link at the end of 34 was buffistas.org, not www.buffistas.org.
I'll fix my link, and now wonder how hard it would be to fix the code itself to not distinguish.
You could configure the webserver to redirect requests for
http://buffistas.orgto
http://www.buffistas.org, that should do the trick, rather than space-monkey with the code.
I'd rather monkey with code than the webserver, since I feel it leaves us more portable.
Either way, I just need to focus.
This should do the trick more-or-less:
<?php if ( strtolower($SERVER['HTTP_HOST']) != "www.buffistas.org" ) { header ('Location: h t t p://www.buffistas.org'.$_SERVER['REQUEST_URI']); exit(); } ?>
(naturally, put the h t t p in without spaces, fighting the auto-linkage here)
Are you thinking of fixing the whole thing where 'http://buffistas.org puts you in guest mode? Because I like that.
me too.
Actually, this is easier:
To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the spec for details.
Thanks, Eddie. It's not so much the implementations as the implications I want to focus on.