Where to store session or local storage info

Hi, I need to store user session data, then change it into JSON format for long enough for my printer to pull all the relevant info into their system.