Removed session driven HTTPS logic