Set timestamp when writing session information to make sure that the same time zone is used when doing garbage collection. Don't gc sessions immediately even if the gc function receives zero as the max age.
Make sure autocommit is enabled in MySQL.