'Set a Cookie to the client browser so that we know this user has
registered & so we should present them with a login form instead
of a register form'

def set_cookie(self):

    cookies = current.response.cookies
    cookies['registered'] = 'yes'
    cookies['registered']['expires'] = ((365 * 24) * 3600)
    cookies['registered']['path'] = '/'
