HOME › Forums › SierraGamers Website › I posted an upgrade
- This topic has 5 replies, 1 voice, and was last updated 19 years, 5 months ago by
Unknown,Unknown.
-
AuthorPosts
-
-
Unknown,Unknown
ParticipantI 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.
-Ken WLink:kenw@seanet.com (mailto:kenw@seanet.com)
-
Unknown,Unknown
Participant(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
Link: http://www.sierrafan.com(http://www.sierrafan.com)
, 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
Link: http://www.wizardandprincess.com(http://www.wizardandprincess.com)
, and I post a new message on
Link: http://www.sierragamers.com(http://www.sierragamers.com)
– 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.
-Ken W
PS I hate computers…. -
Unknown,Unknown
Participant(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.
🙂 emily
-
Unknown,Unknown
Participant(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
Link: http://www.sierragamers.com(http://www.sierragamers.com)
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
Link: http://www.sierrasdad.com(http://www.sierrasdad.com)
to get redirected to
Link: http://www.sierragamers.com(http://www.sierragamers.com)
the message got saved as
Link: http://www.sierragamers.com(http://www.sierragamers.com)
?
If you are thinking that they would be confused by logging on to
Link: http://www.wizardandprincess.com(http://www.wizardandprincess.com)
and getting a email link from
Link: http://www.sierragamers.com(http://www.sierragamers.com)
you could set up all your other domains to redirect to a subdomain of sierragamers.com such as
Link: http://www.sierrasdad.com(http://www.sierrasdad.com)
going to sierrasdad.sierragamers.com or
Link: http://www.wizardandprincess(http://www.wizardandprincess)
.com going to wizardandprincess.sierragamers.com that way you can just write the cookie as sierragamers.com and not
Link: http://www.sierragamers.com(http://www.sierragamers.com)
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.
-Brad -
Unknown,Unknown
Participant(re: Possible cookie authentication fix.) Brad:
Great idea!
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.
-Ken W -
Unknown,Unknown
Participant(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…)
-
-
AuthorPosts