         x = @hash_session_id.split('$')    # format:  algorithm$salt$iterations$hash
         @_remember_me_value = [x[0], x[1], x[2], session_id].join('$')
         @set_cookie
-            name  : base_url() + 'remember_me'
+            name  : base_url_lib.base_url() + 'remember_me'
             value : @_remember_me_value
             ttl   : ttl
 

        # Setup remember-me related cookie handling
        @cookies = {}
        c = new Cookies(@conn.request)
        @_remember_me_value = c.get(base_url() + 'remember_me')

        @check_for_remember_me()


                                base_url = "#{base_url[0]}//#{base_url[2]}"
                                direct_link = "Then go to <a href='#{mesg.link2proj}'>the project '#{mesg.title}'</a>."
                            else # fallback for outdated clients
                                base_url = 'https://cocalc.com/'
                                direct_link = ''

                            # asm_group: 699 is for invites https://app.sendgrid.com/suppressions/advanced_suppression_manager
