   getClientId
   isInAppRoute
   isMainDomain
+  setSessionCookie
 }
-
-

koding = require './bongo'

error_messages =
  404: 'Page not found'

  ]

  return host in mainDomains


{ sessionCookie } = KONFIG

setSessionCookie = (res, sessionId, options = {}) ->

  options.path    = '/'
  options.secure  = sessionCookie.secure
  options.expires = new Date(Date.now() + sessionCookie.maxAge)

  res.cookie 'clientId', sessionId, options


module.exports = {
