Changed session regenerate to delete old session