add Session::loading() to allow easy detection of "session is being loaded" condition