Do not wrap cookie_login in a transaction