The registration page should also be transmitted via HTTPS, and you probably want the cookie secure for registered users, so it is not transmitted when accessing the site via HTTP (this means that the user will not appear when logging in when viewing via HTTP )
source share