durusmail: quixote-users: [PATCH] Sessions -- dbm & id is None
[PATCH] Sessions -- dbm & id is None
[PATCH] Sessions -- dbm & id is None
2003-05-27
2003-06-19
[PATCH] Sessions -- dbm & id is None
Greg Ward
2003-06-19
On 27 May 2003, Mark Bucciarelli said:
> if you try to delete a dbm mapping entry by passing in a key that is
> None, you raise a TypeError.

Sorry, do you mean that this:

  foo = dbm.open(...)  # or whatever
  foo[None] = 1
  del foo[None]

raises TypeError?  If so, that's clearly a bug in the dbm module, and
not really Quixote's problem.  If not, what *do* you mean?

> note that with your browser rejecting cookies, if you sit on the demo
> login screen and click refresh, the session list grows and grows.

I'm pretty sure this is explained in waaay too much detail in
session-mgmt.txt.  I see from your next post that you already figured
out one way to deal with it.  ;-)

        Greg
--
Greg Ward                          http://www.gerg.ca/
If you don't have anything nice to say, come sit by me.
     --Dorothy Parker

reply