Share Database Sessions between cakephp 2 and cakephp 3

Whoever googles this like I just did, I updated the linked thread Migrating from Cakephp 2 to Cakephp 3 one module at once with the solution on how to prevent the shared session data from being lost.