I finally managed to work on the new webframework again and I am happy to report that the basics of server-side sessions now work.
Tomorrow I might or might not optimize the thing a bit and start introducing random UUIDs as primary keys as well as symmetric encryption with a key stored on visitors browsers.