Huh. When I got to the end of Natter 34, I unsubscribed, then clicked the link to the new thread in the last post. I was taken to the first post in Natter 35, but the system took me to the guest mode version of the thread. Going back logs me back in, but going to the home page doesn't. Also, it didn't log me out in this browser window.
If I go from Natter 34 to the home page, and then click on Natter 35, I stay logged in. If I then go back to the last post in Natter 34 and click the link, it logs me out again.
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.
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.org
to
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.
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.
[link]