Web.py MongoDB Sessions

I was playing around with web.py a little while ago, building this little app to allow house sharers to easily manage micro-payments and debts (it’s quite handy for me and my girlfriend).

Like many of my projects, it’s about 2/3 finished. I’m wanting to add a network graph to graphically display debts between your network of friends, and it’s not very secure (anyone can request money from anyone else).

However, while writing it I wrote a session storage backend for web.py to be used with MongoDB. While I was at it, I added some basic user auth and registration functions.

If anyone is looking to use MongoDB with web.py for session handling and user auth, here’s what I wrote.

Enjoy.

Comments

Make comment
No comments for this post

Required. 30 chars of fewer.

Required.

captcha image Please, enter symbols, which you see on the image