Thank you, that set me on the right track.

On Feb 24, 9:35 pm, Malcolm Tredinnick <malc...@pointy-stick.com>
wrote:
> On Tue, 2009-02-24 at 11:36 -0800, ggates03 wrote:
> > Is there any way to have multiple sessions for one browser?
> >  Basically
> > I have a need for different cookie values to expire at different
> > times.  There are some values I want to expire with the browser
> >session, however there are other values I would like to last longer,
> > for example a last visited date.
>
> Multiple sessions? No, since the Django sessions framework is
> implemented via a single cookie on the client side.
>
> Multiple cookies, however, is easy. Just set the cookie details in the
> HttpReponse yourself, giving them whatever names and expiry times you
> like. See the django.contrib.sessions.* code for an example of how to do
> this if you like.
>
> Hmm ... just occurred to me: you could combine both solutions. Implement
> the whole multiple cookies stuff and make it into asessionbackend.
> Django supports custom / third-partysessionbackends (it's pluggable),
> so once you get this working by hand, you could make it work
> transparently via thesessionmechanism with a bit of extra work.
>
> Regards,
> Malcolm
--~--~---------~--~----~------------~-------~--~----~
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