* begin_session(): output the type of session and the UID if we know it.