         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()


{defaults, required, to_safe_str} = misc
{JSON_CHANNEL}       = require('smc-util/client')
message              = require('smc-util/message')
base_url_lib         = require('./base-url')
access               = require('./access')
clients              = require('./clients').get_clients()
auth                 = require('./auth')
