Switch between local and session storage.