Revert "Switch back to cookie storage for sessions"

This reverts commit cee05e766c1d025f52b38501110e1a31e07d7f29.