Drain the pineapple well, then cook everything on stovetop until very thick and jammy.
Preheat oven to 350F and line a 9x9" metal baking tin.
Cream butter, sugar, baking soda, and salt.
Add condensed milk and flour and mix to form a dough.
Press half the dough into your tin and layer jam on top.
Press remaining dough into a square and layer on top of the jam.
Brush with an egg wash and bake for 30 to 40 mins or until crust is golden brown and a toothpick inserted in the center comes out clean.
