Fix a problem with sessions/security. references #46