Issue #2086 Session_cookie's _update_db not guaranteed to update