What glue works best with glass on cork or wood?

Pretty much any drying glue works on wood or cork. But glass is smooth and non-porous, drying glues don't adhere that strongly to glass. So ... which one to use?