On 8/16/07, eXt <[EMAIL PROTECTED]> wrote: > > Hi! > > TestClient has a login function (which is very useful :)), but > doesn't have a logout one. After browsing throught the code I > discovered that I can log a user out with a very simple call: > c.cookies = SimpleCookie(). Is this a proper way of logging out or did > I miss something?
No, there isn't a logout method. However, if there were to be one, resetting the cookie is about all it would need to do. Deleting the old session would be another possible action, although it isn't absolutely required. This issue should probably be logged, so that it isn't forgotten. If you want to try your hand at a patch (including tests and docs), it should be a fairly easy fix. Yours Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---