             # no connection or connection died
             return
         @once("get_cookie-#{opts.name}", (value) -> opts.cb(value))
-        @push_to_client(message.cookies(id:@conn.id, get:opts.name, url:base_url()+"/cookies"))
+        @push_to_client(message.cookies(id:@conn.id, get:opts.name, url:base_url_lib.base_url()+"/cookies"))
 
     set_cookie: (opts) ->
         opts = defaults opts,

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

        if opts.ttl?
            options.expires = new Date(new Date().getTime() + 1000*opts.ttl)
        @cookies[opts.name] = {value:opts.value, options:options}
        @push_to_client(message.cookies(id:@conn.id, set:opts.name, url:base_url_lib.base_url()+"/cookies", value:opts.value))

    remember_me: (opts) ->
        return if not @conn?
