I've used gorilla glue which is expanding polyurethane. I cut grooves in the foam for the glue to flow through as it expands. Adding some moisture to the joint helps encourage the expansion and shortens the cure time. But this is an informative video with a surprising conclusion (Glidden Gripper)
https://www.youtube.com/watch?featur...&v=rnOegaOKu38