How to get all data from session api

I need to get all the data from session.getitem(‘Key’).

example:
console.log( session.getItem() );
values:
0: example value;
1: example value;
etc

I have the same query, would like to get all keys stored in session.

I have tried using the Object.keys(session) function but it just returns the functions available e.g. the getter and setter methods.

Is there a way to get all the keys that have been created in the session?