Spoke too soon!
Well I spoke much too soon about the CherryPy 3.0 upgrade going smoothly!
Unfortunately the onSessionDelete hook has been removed between 2.2 and 3.0, and in addition:
- This isn’t mentioned in the Upgrade Guide.
- It doesn’t raise an error, it’s just silently ignored.
This resulted in us showing nearly a thousand users as being online - which would be great if it was true!
To be fair to the developers when I posted to the list I did get a helpful response however after a lot of messing around with the session I’ve decided to remove it completely. Instead of sessions I am not basically using cookies (although with a few twists for security) and the net result will be much faster and more scalable code.
As the code presently stands I would be unable to cluster the servers but then again I am very far from that and the authentication code is completely abstracted out so it would be very easy to change again in the future.
The other unrelated issue I had today was with Clicksor. They decided to publish some ads on my site with very annoying pop-up dialogue boxes. I’ve just decided to suspend all Clicksor advertising for now and I’ve published an apology.