On Nov 27, 7:17 pm, Julien Phalip <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm writing some tests for a view that sets entries in the session.
> Everything works fine, the entries are properly set and the session
> seems to work ok (using the default DB SessionStore).
>
> However, I can't seem to find how to clear the session. I've tried the
> following, which doesn't work:
>
> self.client.post('/blah/1/') #Sets an entry in the session
> self.client.session.clear()
> #The session's entry still exists
>
> What is the proper way to do this?
>
> Thanks a lot,
>
> JulienNever mind. I've used self.client.session.flush() instead and it worked fine. Cheers, Julien --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

