thanks for the answer. we _are_ doing a redirect on logout.
On 16 Sep., 16:17, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/13/07, patrickk <[EMAIL PROTECTED]> wrote: > > > if 2 users are logged in, the username is displayed correctly for each > > user. BUT: if a user is logged-out, his/her username is still > > displayed. something doesn´t seem to work here and I can´t figure out > > what´s wrong. > > If a user logs out, the 'request.user' attribute is not updated > immediately; it will become an AnonymousUser instance on the *next* > request, not on the one in which the user is logging out. This is why > it's always a good idea to redirect after doing a logout, because that > "clears" request.user. > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---