Upgrading to new defaultsessionmanager