Glue needs to be exposed to air for the binding of molecules. So, you keep a bottle of glue open in air for a long time , it will stick to the walls of the bottle.
why doesnt glue stick to the inside of a bottle ?