Regenerate the session id for security reasons and removed debug