Slowly pull the trap away, then dab the affected area with oil-soaked cotton balls (vegetable, olive, baby oil) until the glue is dissolved. This may take a few minutes. Then rub with a soft, dry cloth. Finally wash with soap and water.
To remove glue residue from glass, you can also scrape it off with a razor blade.