August 18, 2003 at 1:18 pm #21635
I made some major changes – to update some problems with cookie handling.
Hopefully this fixed more bugs than it introduced. I’m on a slow connection (for two more days) so I can’t do much debugging.
Email me with anything strange you see.
August 18, 2003 at 5:11 pm #21636
(re: I posted an upgrade) All:
I just discovered an interesting bug .. that I’m not sure how to fix. Perhaps one of you has a clever idea for me.
This website is accessible via LOTS of different URLs. I use
, but lots of other people access it as wizardandprincess.com, sierrasdad.com, sierragamers.com, and a bunch of other names.
In other words, there are about 10 different URLs that we all use to access this site.
In my code, when I send out a link to the site (as a result of visitors requesting email notification of updates, I use the URL from the person who posts the message. That means that if one of you uses
, and I post a new message on
– your link that is emailed will be a link to a site you’ve never visited.
Argh .. the problem is that the cookie that keeps you logged in is for a site you’ve never been to (or, so the internet thinks).
I’m not sure there is a soluion. I need to think about this one.
PS I hate computers….
August 18, 2003 at 5:19 pm #21637
(re: re: I posted an upgrade)
Your upgrade seems to have fixed the cookie problem I reported right before you went on vacation, at least.
August 18, 2003 at 8:45 pm #21638
(Possible cookie authentication fix.) Ken,
You crack me up with your PS “I hate computers….” on your last message about the cookies – don’t bite the hand that fed you.. ha ha =)
Anyway, in answer to your cookie question, I don’t know if this will work or not (been awhile since I did hardcore web programming), can you not just redirect for example, all your other domains, to one common domain such as
and have sierragamers.com write the cookie. That way all email links that go out will be from sierragamers.com and the cookie will be there, so it will keep you logged in and such even if they originally typed say
to get redirected to
the message got saved as
If you are thinking that they would be confused by logging on to
and getting a email link from
you could set up all your other domains to redirect to a subdomain of sierragamers.com such as
going to sierrasdad.sierragamers.com or
.com going to wizardandprincess.sierragamers.com that way you can just write the cookie as sierragamers.com and not
since the cookie only needs to verify the domain, and not subdomain (so just leave the subdomain off in the cookie) and then it should verify any of those subdomains when they come through to the main cookie sierragamers.com
I hope that made some sense…if not I will try again, or if you don’t think it is even close to what you are trying to do – then I will keep thinking. Hope you get it figured out.
August 19, 2003 at 12:09 pm #21639
(re: Possible cookie authentication fix.) Brad:
I think this works – it forces everyone to use the same URL (which I still am not firm as to what will be – I’m leaning towards sierrafan.com, just because it is shorter). I’ll give it a try.
August 19, 2003 at 12:18 pm #21640
(re: re: Possible cookie authentication fix.)
A different idea is having each person specify in his or hers details page which “sierra” page he would like to be redirected to, and have the email notification just post a link to the preferred site for each user. I am not sure how this will complicate (if at all) the code, as I haven’t got much programming experience (the only language I program in is MATLAB, and that’s for my work…)