Since PHP 7.0 session_regenerate_id() will cause the old session data update. This is redundant INSERT query and also produces a record for the session we don't need anymore.