make session ctor backward compatible, add deprecation warning for delete flag