The MySQLi server behavior uses a different technique and naming convention for saving the cookie. Try this:
1) Delete lines 30-49... That part is handled by the server behavior itself now.
2) Do a find and replace to find: "RememberMeUN" and replace it with: "RememberMe_UserEmail"
If it still doesn't work, email me the updated file in a reply so I can take another look.