Aug 12

The moment the CherryPy 2.1 beta was released, I jumped the bandwagon and ported my intranet app from CP2.0 to CP2.1. But unfortunately for me, the Session handling in CP2.1 was’nt all that pretty. I soon began getting calls from all users and I had to roll back the thing to the old CP2.0 version. I’d even posted a message on CherryPy-Users about this. But I wanted to use CP2.1 and I wanted it real bad. Everything else was greatly improved, and I just loved WSGI support in it. So, I needed a solution for the session handling. So, I hit upon the idea of writing a simple session layer. Thus dbsession.py was born. Its a simple DB based session handler. I use PostgreSQL with PyGreSQL