On Tue, Aug 04, 2009 at 09:14:42AM +1000, Malcolm Tredinnick wrote:
> 
> On Mon, 2009-08-03 at 17:51 +0100, Chris McCormick wrote:
> > I have a strange issue happening with domain cookies. On the site I'm 
> > working
> 
> Python's Cookie module doesn't handle multiple cookies of the same name
> very well, so there might be something going on there. But I'm not going
> to spend too much time thinking about this, since there's an easy
> solution: In addition to changing the cookie domain, change the session
> cookie's name. That way you will no longer be looking for the old cookie
> at all (Django won't care about it) and you can just work with the new
> name that will only exist with one domain setting. Everybody will appear
> to be logged out the next time they use the site, but that shouldn't be
> too onerous.

Great, thanks for the advice, Malcolm, I think this should work for our
use-case. We're pretty keen to not log existing users out since we have a weird
"anonymous user" thing happening, which are actually real users who are
automatically logged in. I will have to come up with some way of copying their
old session cookie to the newly named one, but at least having a differently
named one will mean I can tell them apart.

Best,

Chris.

-------------------
http://mccormick.cx

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to