Add SESSION_COOKIE_DOMAIN
Change print to logging
Change secure_link behavior