Drop sessions with invalid ObjectIds
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 13 Jan 2012 21:59:14 +0000 (22:59 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Sat, 14 Jan 2012 12:36:00 +0000 (13:36 +0100)
commit52fc51f6a9b6379d39d391bd54473eebb6d23cd5
tree1e021d353fb4c699faa7df5f91f2604d675e5b0d
parent9c947004139d0d0ae5a879cd4c120891f8a8d51e
Drop sessions with invalid ObjectIds

The session can contain invalid objectids when switching a
more or less live instance (with logged in users) from
mongo to sql or vice versa.
So drop the complete session and force the user to login
again.
mediagoblin/tools/request.py