fix session timeout recovery code

I broke it when removing the (unneeded) activity code :-)