Local storage and session storage in lonic

How do I use local storage to store the session?

“Session” generally refers to something that is only valid during one invocation of the app. Storage should only be used for things that you want to persist across app quitting and restarting.