base session api add isEmpty and session_store separation global from component