Jakub Labath wrote: > Hi All, > > I have serious problem with my django websites. > I've experienced random user switching. > > User A logs in and user B logs in they both surf the site for a bit > then all of a sudden the user B is now user A. > > So far I tracked it down to the fact that the sessionid cookie would > be the same on user's A computer as well as on user's B computer. > Which of course explains the above behaviour however, I'm not sure how > is this even possible I know the cookies are generated per request why > would it suddenly send the same cookie to two different clients. > > [...] > > I'm not even sure if this is a django problem. > > Anybody experienced something similar?
Not in django, but yes with cacheable content that isn't configured to respect state that's held in a cookie. If A and B are sharing session state via cookies as you suggest, you'll need to instruct downstream caches to respect the cookies using a Vary header directive: http://www.djangoproject.com/documentation/cache/ cheers Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

